CapY Posted July 27, 2011 Share 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 ? Link to comment
mjau Posted July 27, 2011 Share Posted July 27, 2011 with my freeraom experinece it gets removed automaticly and for the timer use setTimer Link to comment
BabY Posted July 28, 2011 Share 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. Link to comment
Jaysds1 Posted July 28, 2011 Share Posted July 28, 2011 Here: function respawnExplodedVehicle() setTimer(respawnVehicle, 5000, 1, source) end addEventHandler("onVehicleExplode", getRootElement(), respawnExplodedVehicle) I got it from Wiki Link to comment
CapY Posted July 28, 2011 Author Share Posted July 28, 2011 Should be that server side ? Doesn't works .. Link to comment
JR10 Posted July 28, 2011 Share Posted July 28, 2011 It should be server side, and it should work. Link to comment
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