VehicleID
#4

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:
pawn Code:
new VehID[XXX];
And when you spawn those vehicles which you need IDs for later you do like:
pawn Code:
VehID[X] = CreateVehicle(...
or
VehID[X] = AddStaticVehicle(...
or
VehID[X] = AddStaticVehicleEx(...
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.
Reply


Messages In This Thread
VehicleID - by Grex - 16.09.2009, 16:30
Re: VehicleID - by Sergei - 16.09.2009, 16:37
Re: VehicleID - by Grex - 16.09.2009, 17:09
Re: VehicleID - by Sergei - 16.09.2009, 17:20
Re: VehicleID - by Grex - 16.09.2009, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)