27.11.2010, 04:14
Hello! I have a admin script where you can spawn cars. Once those cars blow up, they respawn in the same place they were created. I would like to make it so they don't spawn once they are destroyed - they just disappear all together. They are created with CreateVehicle, so they aren't static.
I used DestroyVehicle under OnVehicleRespawn, but it effects the non-admin vehicles as well.
I was wondering if there is another way to do this, or if there is a way to assign the admin vehicles a vehicle-specific name or something that sets it apart from the others, so I can tell DestroyVehicle to destroy ONLY the admin vehicles.
Thanks guys!
- Haegon
I used DestroyVehicle under OnVehicleRespawn, but it effects the non-admin vehicles as well.
I was wondering if there is another way to do this, or if there is a way to assign the admin vehicles a vehicle-specific name or something that sets it apart from the others, so I can tell DestroyVehicle to destroy ONLY the admin vehicles.
Thanks guys!
- Haegon