Dzsipszi Posted March 16, 2013 Posted March 16, 2013 Help! I want a script that prevent cars from explode.
Dzsipszi Posted March 16, 2013 Author Posted March 16, 2013 I want damageable cars but prevent from get fire and explode.
iPrestege Posted March 16, 2013 Posted March 16, 2013 onVehicleExplode cancelEvent or setTimer -- and fixVehicle -- (;
Dzsipszi Posted March 16, 2013 Author Posted March 16, 2013 addEventHandler("onVehicleExplode", getRootElement(), cancelEvent) ?
PaiN^ Posted March 16, 2013 Posted March 16, 2013 addEventHandler("onVehicleExplode", getRootElement(), cancelEvent())
TAPL Posted March 16, 2013 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.
iPrestege Posted March 16, 2013 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 .
TAPL Posted March 16, 2013 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.
PaiN^ Posted March 16, 2013 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 ..
TAPL Posted March 16, 2013 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.
PaiN^ Posted March 16, 2013 Posted March 16, 2013 Oh, You're right, forget about that I want damageable cars ...
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