DestroyVehicle question
#1

Hello,
Like as example:
Vehicle ID is 100 and destroying that vehicle using DestroyVehicle(100); then i create vehicle again, then vehicle ID will be same 100 (Before this vehicle ID was destroyed) vehicle? Or it will generates new ID like 101?
Reply
#2

Created vehicles take the lowest available slot, so yes it will be the same ID unless you create another vehicle before.
Reply
#3

If you destroy a vehicle, the next vehicle will take that same ID.
Reply
#4

ID 100 again...

The id assumes the first free ...
Reply
#5

Thanks guys, now i can continue to build carsystem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)