Difference between revisions of "014B"

From GTAMods Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
'''Parameter 2''': Y-coordinate<br>
 
'''Parameter 2''': Y-coordinate<br>
 
'''Parameter 3''': Z-coordinate<br>
 
'''Parameter 3''': Z-coordinate<br>
'''Parameter 4''': Angle<br>
+
'''Parameter 4''': [[Angle]]<br>
 
'''Parameter 5''': [[DFF]] model ID or name of vehicle<br>
 
'''Parameter 5''': [[DFF]] model ID or name of vehicle<br>
 
'''Parameter 6''': [[Carcols.dat|Primary color]]<br>
 
'''Parameter 6''': [[Carcols.dat|Primary color]]<br>
Line 12: Line 12:
 
'''Parameter 10''': Door lock (based on percent chance)<br>
 
'''Parameter 10''': Door lock (based on percent chance)<br>
 
'''Parameter 11''': <br>
 
'''Parameter 11''': <br>
'''Parameter 12''': <br>
+
'''Parameter 12''': Monetary value<br>
 
'''Parameter 13''': Parked car generator's handle<br>
 
'''Parameter 13''': Parked car generator's handle<br>
 
'''Supports''': GTA3, Vice City, San Andreas<br>
 
'''Supports''': GTA3, Vice City, San Andreas<br>
  
This creates a parked vehicle at a coordinate. This opcode needs [[014C]] for the vehicle to spawn. In San Andreas, you can use [[09E2]] to spawn a vehicle with a custom license plate and [[0A17]] to set a parked vehicle as owned by the player to prevent a wanted level when entering the parked vehicle by using.
+
This creates a parked vehicle at a coordinate. This opcode needs [[014C]] for the vehicle to spawn. In San Andreas, you can use [[09E2]] to spawn a vehicle with a custom license plate and [[0A17]] to set a parked vehicle as owned by the player to prevent a wanted level when entering the parked vehicle by using. In San Andreas, the [[Item_Placement#CARS|CARS]] section of the IPL works similar to this opcode.
  
For the primary and secondary colors of the vehicle, use the value <i>-1</i> to let the game randomly select the colors. Force spawn is forcing the vehicle to spawn, even if it will spawn in front of you. The alarm and door lock of the vehicle is based on a percent chance of occurring. A value of <i>0</i> means 0% chance of triggering an alarm or 0% chance of the door being locked. A value of <i>100</i>  means 100% chance of triggering an alarm or 100% chance of the door being locked.
+
Use the value <i>-1</i> for the primary and/or secondary colors to let the game randomly select the colors defined in <code>carcols.dat</code>.
 +
Force spawn is forcing the vehicle to spawn more often, sometimes even spawning it right in front of you.
 +
The alarm and door lock of the vehicle is based on a percent chance of occurring. A value of <i>0</i> means 0% chance of triggering an alarm or 0% chance of the door being locked. A value of <i>100</i>  means 100% chance of triggering an alarm or 100% chance of the door being locked.
 +
 
 +
The limit for the amount of defined parked cars in GTA3: 160; Vice City: 185; San Andreas: 500.
  
 
==Note==
 
==Note==
 
Sometimes this opcode is written as this:<br>
 
Sometimes this opcode is written as this:<br>
<code>014b=13,%13d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %1d% %2d% %3d% %4d%</code><br>
+
<code>014B=13,%13d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %1d% %2d% %3d% %4d%</code><br>
 
The parameters are mixed around. This depends on which sascm.ini file you use.<br>
 
The parameters are mixed around. This depends on which sascm.ini file you use.<br>
 
[[Mission_Scripting_%28Overview%29#Sanny_Builder|Sanny Builder]] by default:<br>
 
[[Mission_Scripting_%28Overview%29#Sanny_Builder|Sanny Builder]] by default:<br>

Revision as of 20:36, 13 December 2007

014B=13,%1d% %2d% %3d% %4d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %13d%
Description: Initiates a generator to create a parked car
Parameter 1: X-coordinate
Parameter 2: Y-coordinate
Parameter 3: Z-coordinate
Parameter 4: Angle
Parameter 5: DFF model ID or name of vehicle
Parameter 6: Primary color
Parameter 7: Secondary color
Parameter 8: Force spawn
Parameter 9: Alarm (based on percent chance)
Parameter 10: Door lock (based on percent chance)
Parameter 11:
Parameter 12: Monetary value
Parameter 13: Parked car generator's handle
Supports: GTA3, Vice City, San Andreas

This creates a parked vehicle at a coordinate. This opcode needs 014C for the vehicle to spawn. In San Andreas, you can use 09E2 to spawn a vehicle with a custom license plate and 0A17 to set a parked vehicle as owned by the player to prevent a wanted level when entering the parked vehicle by using. In San Andreas, the CARS section of the IPL works similar to this opcode.

Use the value -1 for the primary and/or secondary colors to let the game randomly select the colors defined in carcols.dat. Force spawn is forcing the vehicle to spawn more often, sometimes even spawning it right in front of you. The alarm and door lock of the vehicle is based on a percent chance of occurring. A value of 0 means 0% chance of triggering an alarm or 0% chance of the door being locked. A value of 100 means 100% chance of triggering an alarm or 100% chance of the door being locked.

The limit for the amount of defined parked cars in GTA3: 160; Vice City: 185; San Andreas: 500.

Note

Sometimes this opcode is written as this:
014B=13,%13d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %1d% %2d% %3d% %4d%
The parameters are mixed around. This depends on which sascm.ini file you use.
Sanny Builder by default:
014B: $Pony = car_generator #PONY color -1 -1 0 alarm 0 door_lock 0 0 10000 at 0.0 0.0 0.0 angle 0.0

Keywords

parked, car, vehicle, generator