Difference between revisions of "0236"

From GTAMods Wiki
Jump to navigation Jump to search
m
(updating page)
Line 1: Line 1:
{{OpCode
+
{{Icon|3}} {{Icon|VC}}
| ini        = 0236=2,%1d% %2t%
+
<hr />
| description = Sets the gang's preferred vehicle to drive in
+
'''Description'''
| p1          = gang ID
+
: Sets the gang's preferred vehicle to drive
| p1          = vehicle model ID
+
'''Syntax'''
| game        = [[GTA 3]], [[Vice City]]
+
: 0236: set_gang [''int1''] car_to [''int2'']
}}
+
'''Parameter'''
This opcode sets the gang's preferred vehicle to drive in. The opcode is used in conjunction with [[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. Some models will crash the game, like the Barracks OL in Vice City.
+
: [''int1'']
 +
:: Gang ID
 +
: [''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
  
==Keywords==
+
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 could crash the game, like the Barracks OL, only if the game tries to spawn the multiple models without them being loaded into the game.
 +
 
 +
== Keywords ==
 
set, gang, assign, vehicle, car
 
set, gang, assign, vehicle, car
 +
 +
[[Category:OpCodes]]

Revision as of 09:28, 28 August 2011

GTA III Vice City


Description

Sets the gang's preferred vehicle to drive

Syntax

0236: set_gang [int1] car_to [int2]

Parameter

[int1]
Gang ID
[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

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 could crash the game, like the Barracks OL, only if the game tries to spawn the multiple models without them being loaded into the game.

Keywords

set, gang, assign, vehicle, car