Difference between revisions of "0631"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0631=2,%2d% %1d% | description = Places a character into the group | p1 = Existing group handle | p2 = Existing actor handle | game = San ...)
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
 
| ini        = 0631=2,%2d% %1d%
 
| ini        = 0631=2,%2d% %1d%
| description = Places a character into the group
+
| description = Places a character into the [[07AF|group]]
 
| p1          = Existing group handle
 
| p1          = Existing group handle
 
| p2          = Existing actor handle
 
| p2          = Existing actor handle
Line 7: Line 7:
 
| native      = [[SET_GROUP_MEMBER]]
 
| native      = [[SET_GROUP_MEMBER]]
 
}}
 
}}
This places a character into the group. Note that the parameters are swapped.
+
This places a character into the group. This opcode is similar to [[01DF]] used in GTA3 and Vice City. The character would follow the [[0630|leader]] of the group. Note that the parameters are swapped.
 
[[Sanny Builder]] example:<source lang="scm">0631: put_actor 1@ in_group 0@</source>
 
[[Sanny Builder]] example:<source lang="scm">0631: put_actor 1@ in_group 0@</source>
  
Line 13: Line 13:
 
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
<code>0631=2,%1d% %2d%</code><br>
 
<code>0631=2,%1d% %2d%</code><br>
The format to use depends on which INI file you use.<br>
+
The format to use depends on which INI file you use.
  
 
==Keywords==
 
==Keywords==
 
set, put, actor, character, group
 
set, put, actor, character, group

Revision as of 00:50, 30 December 2008

{{{games}}}


Description
Places a character into the group
Syntax
{{{syntax1}}}
Parameter
Native analog
SET_GROUP_MEMBER

This places a character into the group. This opcode is similar to 01DF used in GTA3 and Vice City. The character would follow the leader of the group. Note that the parameters are swapped.

Sanny Builder example:

0631: put_actor 1@ in_group 0@

Note

The above format is more commonly used. The actual format of this opcode is in order:
0631=2,%1d% %2d%
The format to use depends on which INI file you use.

Keywords

set, put, actor, character, group