Difference between revisions of "0237"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
− | {{Icon| | + | {{OpCode |
− | + | | games = {{Icon|t}} | |
− | + | | command = SET_GANG_WEAPONS | |
− | + | | description = Sets the [[weapon]]s of the [[gang]] | |
− | + | | syntax1 = {{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''] | |
− | + | | p1t = [''int1''] | |
− | + | | p1d = [[Gang|Gang id]] | |
− | + | | p2t = [''int2''] | |
− | + | | p2d = [[Weapon#Lists of Weapons|Weapon number 1]] | |
− | + | | p3t = [''int3''] | |
− | + | | p3d = Weapon number 2 | |
− | + | | p4t = [''int4''] | |
− | + | | p4d = Weapon number 3 | |
− | + | | native = [[SET_GANG_WEAPONS]] | |
− | + | }} | |
− | |||
− | |||
− | This opcode sets the weapons of | + | 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 VC)#Block 13: Gangs|block 13 of the save file]] in Vice City and [[Saves (GTA SA)#Block 11: Gangs|block 11]] in San Andreas. |
== Keywords == | == Keywords == | ||
set, weapon, gang | set, weapon, gang | ||
− | |||
− |
Revision as of 08:25, 2 December 2016
- Description
- Sets the weapons of the gang
- Syntax
- 0237: set_gang [int1] primary_weapon_to [int2] secondary_weapon_to [int3]
- 0237: set_gang [int1] weapons_to [int2] [int3] [int4]
- Parameter
- [int1]
- Gang id
- [int2]
- Weapon number 1
- [int3]
- Weapon number 2
- [int4]
- Weapon number 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 13 of the save file in Vice City and block 11 in San Andreas.
Keywords
set, weapon, gang