Difference between revisions of "014B"

From GTAMods Wiki
Jump to navigation Jump to search
(simple links are working; no need for piped ones)
Line 1: Line 1:
<code>014B=13,%1d% %2d% %3d% %4d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %13d%</code><br>
+
{{OpCode
'''Description''': Initiates a generator to create a parked vehicle<br>
+
| ini        = 014B=13,%13d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %1d% %2d% %3d% %4d%
'''Parameter 1''': X-coordinate<br>
+
| description = Initiates a generator to create a parked vehicle
'''Parameter 2''': Y-coordinate<br>
+
| p1          = X-coordinate
'''Parameter 3''': Z-coordinate<br>
+
| p2          = Y-coordinate
'''Parameter 4''': [[Angle]]<br>
+
| p3          = Z-coordinate
'''Parameter 5''': Valid [[DFF]] model ID or name of vehicle as defined in the [[IDE#CARS|IDE]] file<br>
+
| p4          = [[Angle]]
'''Parameter 6''': [[Carcols.dat|Primary color]]<br>
+
| p5          = Valid vehicle [[DFF]] model name or ID number as defined in the [[IDE#CARS|IDE]] file
'''Parameter 7''': [[Carcols.dat|Secondary color]]<br>
+
| p6          = [[Carcols.dat|Primary color]]
'''Parameter 8''': Force spawn<br>
+
| p7          = [[Carcols.dat|Secondary color]]
'''Parameter 9''': Alarm (based on percent chance)<br>
+
| p8          = Force spawn
'''Parameter 10''': Door lock (based on percent chance)<br>
+
| p9          = Alarm (based on percent chance)
'''Parameter 11''': <br>
+
| p10        = Door lock (based on percent chance)
'''Parameter 12''': <br>
+
| p11        = ''unknown''
'''Parameter 13''': Parked vehicle generator's handle<br>
+
| p12        = ''unknown''
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| p13        = Parked vehicle generator's handle
 
+
| game        = GTA3, Vice City, San Andreas
This creates a parked vehicle at a coordinate. This opcode needs [[014C]] for the vehicle to spawn. Unlike [[00A5]] you do not need to request to model of the vehicle. In San Andreas, the [[Item_Placement#CARS|CARS]] section of the IPL works similar to this opcode.
+
| native      = [[CREATE_CAR_GENERATOR]]
 +
}}
 +
This creates a parked vehicle at a coordinate. This opcode needs [[014C]] for the vehicle to spawn. Unlike [[00A5]] you do not need to request to model of the vehicle. In San Andreas, the [[Item_Placement#CARS|CARS]] section of the IPL works similar to this opcode. Note that the parameters are mixed around.
 +
[[Sanny Builder]] example:<source lang="scm">014B: 0@ = car_generator #PONY color -1 -1 0 alarm 0 door_lock 0 0 10000 at 0.0 0.0 0.0 angle 0.0</source>
  
 
Parameter 5: Using a value of <i>-1</i> will generate a random vehicle. The vehicle is usually a vehicle already driving on the road.<br>
 
Parameter 5: Using a value of <i>-1</i> will generate a random vehicle. The vehicle is usually a vehicle already driving on the road.<br>
Line 26: Line 29:
  
 
==Note==
 
==Note==
Sometimes this opcode is written as this:<br>
+
The above format is more commonly used. The actual format of this opcode is in order:<br>
<code>014B=13,%13d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %1d% %2d% %3d% %4d%</code><br>
+
<code>014B=13,%1d% %2d% %3d% %4d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %13d%</code><br>
The parameters are mixed around. This depends on which INI file you use.<br>
+
The format to use depends on which INI file you use.
[[Sanny Builder]] by default:<br>
 
<code>014B: 0@ = car_generator #PONY color -1 -1 0 alarm 0 door_lock 0 0 10000 at 0.0 0.0 0.0 angle 0.0</code>
 
  
 
==Related Opcodes==
 
==Related Opcodes==

Revision as of 00:33, 28 December 2008

{{{games}}}


Description
Initiates a generator to create a parked vehicle
Syntax
{{{syntax1}}}
Parameter
Native analog
CREATE_CAR_GENERATOR

This creates a parked vehicle at a coordinate. This opcode needs 014C for the vehicle to spawn. Unlike 00A5 you do not need to request to model of the vehicle. In San Andreas, the CARS section of the IPL works similar to this opcode. Note that the parameters are mixed around.

Sanny Builder example:

014B: 0@ = car_generator #PONY color -1 -1 0 alarm 0 door_lock 0 0 10000 at 0.0 0.0 0.0 angle 0.0

Parameter 5: Using a value of -1 will generate a random vehicle. The vehicle is usually a vehicle already driving on the road.
Parameter 6 and 7: Using a value of -1 will let the game randomly select the colors defined in carcols.dat.
Parameter 8: Force spawn is forcing the vehicle to spawn more often, sometimes even spawning it right in front of you.
Parameter 9 and 10: 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

The above format is more commonly used. The actual format of this opcode is in order:
014B=13,%1d% %2d% %3d% %4d% %5o% %6d% %7d% %8d% %9d% %10d% %11d% %12d% %13d%
The format to use depends on which INI file you use.

Related Opcodes

Unfortunately most vehicle-related opcodes does not work directly for parked vehicles. 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.

Keywords

parked, car, vehicle, generator