CapY Posted July 27, 2011 Posted July 27, 2011 So i have freeroam server. So when some player blow up vehicle it stays there , like some trash. How can i set timer to destroy blowed vehicle ?
mjau Posted July 27, 2011 Posted July 27, 2011 with my freeraom experinece it gets removed automaticly and for the timer use setTimer
BabY Posted July 28, 2011 Posted July 28, 2011 Maybe identify all cars (BLAH = getElementsByType ("vehicle")) then use (if BLA = getElementHealth(BLAH) and (BLA) == < 80 then) and set a timer to delete the element which is the vehicle.
Jaysds1 Posted July 28, 2011 Posted July 28, 2011 Here: function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) I got it from Wiki
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