Posts: 120
Threads: 37
Joined: May 2012
Reputation:
0
HI there. I am using a filterscript for a car spawn menu but once they have exploded or drowned they go back to the place the car menu spawned them from. How do I make it that cars ONLY spawned from this filterscript car menu not respawn?
Thanks
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
To state it obviously, use DestroyVehicle under OnVehicleDeath...
Posts: 25
Threads: 1
Joined: Dec 2012
Reputation:
0
If you only want the cars that the FS spawns to be destroyed when they touch water, then it is a bit more complicated. You would have to keep track of which vehicle IDs are spawned by that FS, and then in OnVehicleDeath, check if the vehicle "dying" is one of those, and if so, DestroyVehicle.
Posts: 120
Threads: 37
Joined: May 2012
Reputation:
0
Nevermind. GOT IT ALL WORKING. YOU CAN DELETE THIS THREAD!