DoKtoR Posted February 25, 2014 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
Anubhav Posted February 25, 2014 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)
DoKtoR Posted February 25, 2014 Author Posted February 25, 2014 What? I dont need your script.. The problem is about detecting explodes.
Anubhav Posted February 25, 2014 Posted February 25, 2014 [url=https://wiki.multitheftauto.com/wiki/OnClientExplosion]https://wiki.multitheftauto.com/wiki/OnClientExplosion[/url]
Karuzo Posted February 25, 2014 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.
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