Difference between revisions of "014C"

From GTAMods Wiki
Jump to navigation Jump to search
 
(correct meaning of the second param)
Line 4: Line 4:
 
'''Parameter 2''': Integer (0 to 101)
 
'''Parameter 2''': Integer (0 to 101)
  
This opcode is required to generate a parked vehicle using [[014B]]. Parameter 2 is the percent chance of spawning the vehicle. A value of <i>0</i> means 0% chance of spawning. A value of <i>100</i> means 100% chance of spawning. Apparently you can put a value of <i>101</i>.
+
This opcode is required to generate a parked vehicle using [[014B]]. Parameter 2 is the limit for this parking (number of vehicles to generate). This is, a value of <i>0</i> means vehicle won't be generated at all. A value of <i>50</i> means the vehicle will be generated 50 times until the parking to be disabled. A value of <i>101</i> or higher means no limit.
 
==Keywords==
 
==Keywords==
 
parked, car, vehicle, generator
 
parked, car, vehicle, generator
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 15:01, 30 May 2008

014C=2,%1d% %2d%
Description: Sets a parked vehicle to generate
Parameter 1: Parked vehicle generator's handle
Parameter 2: Integer (0 to 101)

This opcode is required to generate a parked vehicle using 014B. Parameter 2 is the limit for this parking (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

parked, car, vehicle, generator