how to destroy last vehicle?
#2

1) set a variable for the last vehicle ID.
2) set the checkpoint in map-icon and set a variable for that checkpoint.
3) under OnPlayerEnterCheckpoint or whatever add a new variable that sets to one that he reached that point.
4) under OnPlayerEnterVehicle add a condition to check the variable that we set under OnPlayerEnterCheckpoint and if it's not zero the set it to zero and destroy the vehicle.
5) add a message so the player would know (optional)

I hope I helped any feedback would be appreciated!
Reply


Messages In This Thread
how to destroy last vehicle? - by UserName31 - 25.07.2014, 02:21
Re: how to destroy last vehicle? - by Stanford - 25.07.2014, 03:52
Re: how to destroy last vehicle? - by UserName31 - 25.07.2014, 16:30
Re: how to destroy last vehicle? - by Stanford - 25.07.2014, 17:16

Forum Jump:


Users browsing this thread: 2 Guest(s)