DoKtoR Posted February 25, 2014 Share Posted February 25, 2014 (edited) I found a little bug with onClientVehicleDamage function. It sometimes doesnt detect explosions as theWeapon (grenades,satchels,rocket launcher). Iam testing with this script: function handleVehicleDamage(attacker, weapon, loss, x, y, z, tyre) outputChatBox(""..weapon.."") end addEventHandler("onClientVehicleDamage",getRootElement(), handleVehicleDamage) It sometimes says "51" when i use grenades,satchels,rocket launchers. But more often it doesnt detect that weapons. Edited February 25, 2014 by Guest Link to comment
Anubhav Posted February 25, 2014 Share Posted February 25, 2014 function handleVehicleDamage(attacker, weapon, loss, x, y, z, tyre) if (weapon and getElementModel(source) == 432) then outputChatBox(""..weapon.."") end end addEventHandler("onClientVehicleDamage",getRootElement(), handleVehicleDamage) Link to comment
DoKtoR Posted February 25, 2014 Author Share Posted February 25, 2014 What? I dont need your script.. The problem is about detecting explodes. Link to comment
Anubhav Posted February 25, 2014 Share Posted February 25, 2014 [url=https://wiki.multitheftauto.com/wiki/OnClientExplosion]https://wiki.multitheftauto.com/wiki/OnClientExplosion[/url] Link to comment
Karuzo Posted February 25, 2014 Share Posted February 25, 2014 You know that he didn't asked for that? He says that it doesn't detect rocket launchers and so on. 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