Difference between revisions of "0237"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|trilogy}}
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = SET_GANG_WEAPONS
: Sets the [[weapon]]s of the specified [[gang]]
+
| description = Sets the [[weapon]]s of the [[gang]]
'''Syntax'''
+
| syntax1    = {{Icon|3}} {{Icon|VC}} 0237: set_gang [''int1''] primary_weapon_to [''int2''] secondary_weapon_to [''int3'']
: {{Icon|3}} {{Icon|VC}} 0237: set_gang [''int1''] primary_weapon_to [''int2''] secondary_weapon_to [''int3'']
+
| syntax2    = {{Icon|SA}} 0237: set_gang [''int1''] weapons_to [''int2''] [''int3''] [''int4'']
: {{Icon|SA}} 0237: set_gang [''int1''] weapons_to [''int2''] [''int3''] [''int4'']
+
| p1t        = [''int1'']
'''Parameter'''
+
| p1d        = [[Gang|Gang id]]
: [''int1'']
+
| p2t        = [''int2'']
:: [[Gang|Gang number]]
+
| p2d        = [[Weapon#Lists of weapons|Weapon type 1]]
: [''int2'']
+
| p3t        = [''int3'']
:: [[Weapon#Lists of Weapons|Weapon number 1]]
+
| p3d        = Weapon type 2
: [''int3'']
+
| p4t        = [''int4'']
:: Weapon number 2
+
| p4d        = Weapon type 3
: [''int4'']
+
| native      = [[SET_GANG_WEAPONS]]
:: Weapon number 3
+
}}
'''Native analog'''
 
: [[SET_GANG_WEAPONS]]
 
  
This opcode sets the weapons of a specific gang. If a gang's weapons are not set by this opcode, the game will use the default hardcoded gang weapons. The value set with this opcode is saved in [[Saves (GTA VC)#Block 13: All Gang Data|block 13 of the save file]].
+
This opcode sets the weapons of the gang. If a gang's weapons have not been set by this opcode, the game will use the default hardcoded weapons as the gang's weapons. The value set with this opcode is saved in [[Saves (GTA 3)#Block 12: Gangs|block 12 of the save file]] in GTA III, [[Saves (GTA VC)#Block 13: Gangs|block 13]] in Vice City, and [[Saves (GTA SA)#Block 11: Gangs|block 11]] in San Andreas.
  
 
== Keywords ==
 
== Keywords ==
 
set, weapon, gang
 
set, weapon, gang
 
[[Category:OpCodes]]
 

Latest revision as of 06:08, 8 July 2017

GTA III Vice City San Andreas SET_GANG_WEAPONS


Description
Sets the weapons of the gang
Syntax
GTA III Vice City 0237: set_gang [int1] primary_weapon_to [int2] secondary_weapon_to [int3]
San Andreas 0237: set_gang [int1] weapons_to [int2] [int3] [int4]
Parameter
[int1]
Gang id
[int2]
Weapon type 1
[int3]
Weapon type 2
[int4]
Weapon type 3
Native analog
SET_GANG_WEAPONS

This opcode sets the weapons of the gang. If a gang's weapons have not been set by this opcode, the game will use the default hardcoded weapons as the gang's weapons. The value set with this opcode is saved in block 12 of the save file in GTA III, block 13 in Vice City, and block 11 in San Andreas.

Keywords

set, weapon, gang