16.09.2009, 17:20
Each trailer is separated vehicle basically, but it is automaticly spawned and attached when you spawn train.
And for examples about variables.
Make an array for those special IDs you need like:
And when you spawn those vehicles which you need IDs for later you do like:
And later on in your script you just use VehID[X] instead of actual IDs.
Of course XXX are just symbols in this example, you need ot change them with actual values.
And for examples about variables.
Make an array for those special IDs you need like:
pawn Code:
new VehID[XXX];
pawn Code:
VehID[X] = CreateVehicle(...
or
VehID[X] = AddStaticVehicle(...
or
VehID[X] = AddStaticVehicleEx(...
Of course XXX are just symbols in this example, you need ot change them with actual values.