Main Page > GTA2 > Modding Tutorial > Creating vehicles
GTA2 will automatically create driving vehicles on the roads. Only parked cars and mission based cars have to be scripted. To simply create a vehicle, you use this command:
CAR_DATA name = ( X.x , Y.y , Z.z ) color rotation vehicle
name | Unique name of the car |
---|---|
( X.x , Y.y , Z.z ) | The coordinates |
color | The color you want the car to have. Each color has it's own number, see the list below. |
rotation | The direction the car should face |
vehicle | The code of the car type. See the list below. |
This command goes before LEVELSTART.
Example
If you want to create a red Stinger at the coordinates 146.5 , 158.5 , 2.0, facing North, the command will look like this:
CAR_DATA stingeratparking = ( 146.5 , 158.5 , 2.0 ) 35 180 STINGRAY
Vehicle codes
|
Vehicle colors
|
Mapping | Map Editor · Buildings · Roads · Water & animations · Slopes · Flat tiles · Collision info · Level edge · Zones · Putting a level ingame | |
---|---|---|
Scripting | Declarering: | Main script · Script Compiler · Code lists · Commands · Vehicles · Objects · Sounds · Characters |
Programming: | IF · WHILE · COUNTERs · Subroutines · THREAD TRIGGERs · Kill Frenzies | |
Both | Manual · Lighting · Car shops · Cranes & crushers · Gangs · Subway · Multiplayer levels | |
File types | .gci · .gmp · .gxt · .mis · .mmp · .scr · .seq · .tmp · .sty | |
Other | Texting · Physics · Creating vehicles · Terminology · Installing levels |