Mr.unpredictable. Posted March 15, 2015 Share Posted March 15, 2015 (edited) When i fire rocket launcher, it creates a fire lid near the explosion, i want rocket launcher to only explod but not to create fire lid near by. What functions should i use to disable fire from the rocket it should create explosion but should not create fire near by Edited March 23, 2015 by Guest Link to comment
Addlibs Posted March 15, 2015 Share Posted March 15, 2015 I have no idea if it's even possible to stop fire from being created. I'm also not sure if it's entirely possible to prevent fire damage, this code should do well - if not, it will at least protect from flame thrower damage. addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon, bodypart, loss) if weapon == 37 then --assuming that you can use 'Burnt' death cause on onClientPlayerDamage cancelEvent() end end ) Link to comment
Mr.unpredictable. Posted March 15, 2015 Author Share Posted March 15, 2015 I have no idea if it's even possible to stop fire from being created.I'm also not sure if it's entirely possible to prevent fire damage, this code should do well - if not, it will at least protect from flame thrower damage. addEventHandler("onClientPlayerDamage", localPlayer, function(attacker, weapon, bodypart, loss) if weapon == 37 then --assuming that you can use 'Burnt' death cause on onClientPlayerDamage cancelEvent() end end ) I've tried that long back, it doesn't work. EDIT: I had mistake in my code, It's working fine thanks Do you know, what function should i use to make vehicle fireproof? Link to comment
Moderators IIYAMA Posted March 15, 2015 Moderators Share Posted March 15, 2015 I don't think the fire creation can be removed from an explosion. But you could try to use another type of explosion. event > cancelEvent() > createExplosion https://wiki.multitheftauto.com/wiki/OnClientExplosion https://wiki.multitheftauto.com/wiki/CancelEvent https://wiki.multitheftauto.com/wiki/CreateExplosion Link to comment
Mr.unpredictable. Posted March 16, 2015 Author Share Posted March 16, 2015 I don't think the fire creation can be removed from an explosion.But you could try to use another type of explosion. event > cancelEvent() > createExplosion https://wiki.multitheftauto.com/wiki/OnClientExplosion https://wiki.multitheftauto.com/wiki/CancelEvent https://wiki.multitheftauto.com/wiki/CreateExplosion ahhh thanks setVehicleDamageProof I wanted to make it fire proof anyway i made it using onClientVehicleDamage. 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