Dzsipszi Posted March 16, 2013 Share Posted March 16, 2013 Help! I want a script that prevent cars from explode. Link to comment
Dzsipszi Posted March 16, 2013 Author Share Posted March 16, 2013 I want damageable cars but prevent from get fire and explode. Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 onVehicleExplode cancelEvent or setTimer -- and fixVehicle -- (; Link to comment
Dzsipszi Posted March 16, 2013 Author Share Posted March 16, 2013 addEventHandler("onVehicleExplode", getRootElement(), cancelEvent) ? Link to comment
PaiN^ Posted March 16, 2013 Share Posted March 16, 2013 addEventHandler("onVehicleExplode", getRootElement(), cancelEvent()) Link to comment
TAPL Posted March 16, 2013 Share Posted March 16, 2013 This event can be cancelled? Because the wiki haven't say if it can be cancelled or not. Mostly it can't be cancelled. Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 This event can be cancelled?Because the wiki haven't say if it can be cancelled or not. Mostly it can't be cancelled. Yes,That's right won't be work should try to use fixVehicle with setTimer . Link to comment
TAPL Posted March 16, 2013 Share Posted March 16, 2013 I want damageable cars but prevent from get fire and explode. You can do this by using the event onVehicleDamage, get the health of the vehicle with the function getElementHealth, and check if the health of the vehicle is low (before it get fire) then make it not damageable with the function setVehicleDamageProof. Link to comment
PaiN^ Posted March 16, 2013 Share Posted March 16, 2013 I want damageable cars but prevent from get fire and explode. You can do this by using the event onVehicleDamage, get the health of the vehicle with the function getElementHealth, and check if the health of the vehicle is low (before it get fire) then make it not damageable with the function setVehicleDamageProof. That's a long way, Mr.Pres[T]ege's way is better .. Link to comment
TAPL Posted March 16, 2013 Share Posted March 16, 2013 I want damageable cars but prevent from get fire and explode. You can do this by using the event onVehicleDamage, get the health of the vehicle with the function getElementHealth, and check if the health of the vehicle is low (before it get fire) then make it not damageable with the function setVehicleDamageProof. That's a long way, Mr.Pres[T]ege's way is better .. Who cares if it long or short? (it's short actually) fixVehicle with timer also you might need to loop all of the vehicle in the server, you call this a better way? Oh and remember: I want damageable cars but prevent from get fire and explode. Link to comment
PaiN^ Posted March 16, 2013 Share Posted March 16, 2013 Oh, You're right, forget about that I want damageable cars ... 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