Difference between revisions of "014C"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 014C=2,%1d% %2d%
+
| games      = {{Icon|t}}
| description = Sets a parked vehicle to generate
+
| command    = SWITCH_CAR_GENERATOR
| p1          = Parked vehicle generator's handle
+
| description = Switches the car generator
| p2          = Integer (0 to 101)
+
| syntax1    = 014C: set_parked_car_generator [''car generator''] cars_to_generate_to [''int'']
| game        = GTA3, Vice City, San Andreas
+
| p1t        = [''car generator'']
 +
| p1d        = The [[014B|handle of the car generator]]
 +
| p2t        = [''int'']
 +
| p2d        = 0 = off (default), {{hint|101|or any value other than 0}} = on
 
| native      = [[SWITCH_CAR_GENERATOR]]
 
| native      = [[SWITCH_CAR_GENERATOR]]
 
}}
 
}}
This opcode is required to generate a parked vehicle using [[014B]]. Parameter 2 is the limit for this parking (a number of vehicles to generate). This is, a value of ''0'' means vehicle won't be generated at all. A value of ''50'' means the vehicle will be generated 50 times until the parking to be disabled. A value of ''101'' or higher means no limit.
 
  
==Keywords==
+
This opcode switches the car generator created using [[014B]], which is off by default. Oddly, an integer value less than 101 is meant to be a counter for the number of times the car generator spawns the vehicle before it stops spawning but a bug prevents this feature from working.
parked, car, vehicle, generator
 
  
[[Category:OpCodes]]
+
== Keywords ==
 +
set, parked, car, vehicle, generator, switch

Latest revision as of 05:15, 13 June 2016

GTA III Vice City San Andreas SWITCH_CAR_GENERATOR


Description
Switches the car generator
Syntax
014C: set_parked_car_generator [car generator] cars_to_generate_to [int]
Parameter
[car generator]
The handle of the car generator
[int]
0 = off (default), 101 = on
Native analog
SWITCH_CAR_GENERATOR

This opcode switches the car generator created using 014B, which is off by default. Oddly, an integer value less than 101 is meant to be a counter for the number of times the car generator spawns the vehicle before it stops spawning but a bug prevents this feature from working.

Keywords

set, parked, car, vehicle, generator, switch