Difference between revisions of "0236"

From GTAMods Wiki
Jump to navigation Jump to search
(created article)
 
(updates)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0236=2,%1d% %2t%
+
| games      = {{Icon|3}} {{Icon|VC}}
| description = Sets the gang's preferred vehicle to drive in
+
| command    = SET_GANG_CAR_MODEL
| p1          = gang ID
+
| description = Sets the vehicle model of the [[gang]]
| p1          = vehicle model ID
+
| syntax1    = 0236: set_gang [''int1''] car_to [''int2'']
| game        = [[GTA 3]], [[Vice City]]
+
| p1t        = [''int1'']
 +
| p1d        = Gang index
 +
| p2t        = [''int2'']
 +
| p2d        = Valid model index as defined in the [[CARS (IDE Section)|CARS section]] of the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character; ''-1'' uses no vehicle
 
}}
 
}}
This opcode sets the gang's preferred vehicle to drive in. The opcode is used in conjunction with [[0152]] so either opcodes are useless by themselves. Only one gang car can be used for each gang. If the class of the vehicle is assigned to a ped (i.e. taxi drivers in taxis) in the [[PEDS]] section of the [[IDE]] file, it will not spawn the gang member but will spawn the assigned ped instead.
+
 
 +
This opcode sets the gang's preferred vehicle to drive in. The opcode is used after the gang is allowed to spawn in vehicles using opcode [[0152]] so this opcode is useless by itself. Only one gang car can be used for one gang. Use a value of ''-1'' as the vehicle model to make the gang not drive any vehicle. If more than one gang is assigned to one vehicle, the first assigned gang will be used. If more than one vehicle is assigned to a gang, the last assigned vehicle will be used. If the vehicle is [[hardcoded]] to be assigned to a ped (e.g. taxi drivers in taxis), it will not spawn the gang member but will spawn the assigned ped instead. A few vehicles, like the Barracks OL, have ped models not normally loaded into the game and could crash the game. One solution is to [[0247|load the model]] of the ped. The setting is saved in [[Saves (GTA 3)#Block 12: Gangs|block 12 of the save file]] in GTA III and [[Saves (GTA VC)#Block 13: Gangs|block 13]] in Vice City.
 +
 
 +
== Keywords ==
 +
set, gang, assign, vehicle, car

Latest revision as of 03:36, 20 June 2016

GTA III Vice City SET_GANG_CAR_MODEL


Description
Sets the vehicle model of the gang
Syntax
0236: set_gang [int1] car_to [int2]
Parameter
[int1]
Gang index
[int2]
Valid model index as defined in the CARS section of the IDE file; also acceptable is model's DFF name with a hash character; -1 uses no vehicle

This opcode sets the gang's preferred vehicle to drive in. The opcode is used after the gang is allowed to spawn in vehicles using opcode 0152 so this opcode is useless by itself. Only one gang car can be used for one gang. Use a value of -1 as the vehicle model to make the gang not drive any vehicle. If more than one gang is assigned to one vehicle, the first assigned gang will be used. If more than one vehicle is assigned to a gang, the last assigned vehicle will be used. If the vehicle is hardcoded to be assigned to a ped (e.g. taxi drivers in taxis), it will not spawn the gang member but will spawn the assigned ped instead. A few vehicles, like the Barracks OL, have ped models not normally loaded into the game and could crash the game. One solution is to load the model of the ped. The setting is saved in block 12 of the save file in GTA III and block 13 in Vice City.

Keywords

set, gang, assign, vehicle, car