manuelhimmler Posted December 10, 2009 Posted December 10, 2009 Hi Community! I have scripted that the vehicles get removed by the script if they exploded destroyElement(vehicle), but the problem is, the vehicles are not removing everytime, I don't what to do, is this a MTA bug or is there a better solution to delete exploded vehicles without this problem.
50p Posted December 10, 2009 Posted December 10, 2009 There would be if https://wiki.multitheftauto.com/wiki/Set ... spawnDelay worked. If it works, then, well, you've got what you wanted.
manuelhimmler Posted December 10, 2009 Author Posted December 10, 2009 But I want to delete the car, not respawn it.
50p Posted December 10, 2009 Posted December 10, 2009 Then no, if you're using a timer in onVehicleExplode.
manuelhimmler Posted December 11, 2009 Author Posted December 11, 2009 Could thr problem be that i create the vehicle with the admin panel but want to destroy it in my own script?
50p Posted December 11, 2009 Posted December 11, 2009 Depends how your script works. Show us your script that destroys the vehicles and we'll tell you then.
manuelhimmler Posted December 12, 2009 Author Posted December 12, 2009 addEventHandler ( "onVehicleExplode", getRootElement(), function() setTimer( destroyElement,5000,1,source) end )
50p Posted December 12, 2009 Posted December 12, 2009 This should work with all vehicles even with those created with admin panel. I've noticed it doesn't always destroy vehicles.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now