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 ...)
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0631=2,%2d% %1d%
+
| games      = {{Icon|SA}}
| description = Places a character into the group
+
| command    = SET_GROUP_MEMBER
| p1          = Existing group handle
+
| description = Sets the character as a member of the [[07AF|group]]
| p2          = Existing actor handle
+
| syntax1    = 0631: put_actor [''char handle''] in_group [''group handle'']
| game        = San Andreas
+
| p1t        = [''group handle'']
 +
| p1d        = The handle of the group
 +
| p2t        = [''char handle'']
 +
| p2d        = The handle of the character
 
| native      = [[SET_GROUP_MEMBER]]
 
| native      = [[SET_GROUP_MEMBER]]
 
}}
 
}}
This places a character into the group. Note that the parameters are swapped.
 
[[Sanny Builder]] example:<source lang="scm">0631: put_actor 1@ in_group 0@</source>
 
  
==Note==
+
This opcode sets the character as a member of the group. This opcode is similar to [[01DF]] used in GTA3 and Vice City. The character would follow the [[0630|leader]] of the group.
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
<code>0631=2,%1d% %2d%</code><br>
 
The format to use depends on which INI file you use.<br>
 
  
==Keywords==
+
== Keywords ==
 
set, put, actor, character, group
 
set, put, actor, character, group

Latest revision as of 01:33, 25 November 2016

San Andreas SET_GROUP_MEMBER


Description
Sets the character as a member of the group
Syntax
0631: put_actor [char handle] in_group [group handle]
Parameter
[group handle]
The handle of the group
[char handle]
The handle of the character
Native analog
SET_GROUP_MEMBER

This opcode sets the character as a member of the group. This opcode is similar to 01DF used in GTA3 and Vice City. The character would follow the leader of the group.

Keywords

set, put, actor, character, group