Difference between revisions of "0236"

From GTAMods Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
'''Parameter'''
 
'''Parameter'''
 
: [''int1'']
 
: [''int1'']
:: Gang ID
+
:: [[Gang]] index
 
: [''int2'']
 
: [''int2'']
 
:: Valid vehicle model ID number as defined in the [[CARS (IDE Section)|CARS section]] of the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
 
:: Valid vehicle model ID number as defined in the [[CARS (IDE Section)|CARS section]] of the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
Line 13: Line 13:
 
: [[SET_GANG_CAR]]
 
: [[SET_GANG_CAR]]
  
This opcode sets the gang's preferred vehicle to drive in. The opcode is used in conjunction with opcode [[0152]] so it is useless by itself. Only one gang car can be used for one gang. 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 (i.e. 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|stream the model]] of the ped. 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 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. 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|stream the model]] of the ped. The value set with this opcode is saved in [[Saves (GTA VC)#Block 13: All Gang Data|block 13 of the save file]] in Vice City.
  
 
== Keywords ==
 
== Keywords ==

Revision as of 11:41, 13 January 2012

GTA III Vice City


Description

Sets the gang's preferred vehicle to drive

Syntax

0236: set_gang [int1] car_to [int2]

Parameter

[int1]
Gang index
[int2]
Valid vehicle model ID number as defined in the CARS section of the IDE file; also acceptable is model's DFF name with a hash character

Native analog

SET_GANG_CAR

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. 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 stream the model of the ped. The value set with this opcode is saved in block 13 of the save file in Vice City.

Keywords

set, gang, assign, vehicle, car