Difference between revisions of "014B"
m |
|||
Line 33: | Line 33: | ||
The format to use depends on which INI file you use. | The format to use depends on which INI file you use. | ||
− | In San Andreas, parked vehicles will not be created while you are inside an [[interior]] | + | In San Andreas, parked vehicles will not be created while you are inside an [[interior]]. |
− | == | + | ==See also== |
− | + | *[[Spawn a vehicle]] | |
==Keywords== | ==Keywords== | ||
− | parked, car, vehicle, generator | + | create, parked, car, vehicle, generator |
Revision as of 16:48, 22 June 2010
{{{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 opcode 014C for the vehicle to spawn. Unlike opcode 00A5 or others similar to it, 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. The car will be spawned as not owned by the player so if you enter the car in front of the police, you will be wanted. 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.
Notes
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.
In San Andreas, parked vehicles will not be created while you are inside an interior.
See also
Keywords
create, parked, car, vehicle, generator