Castillo Posted February 4, 2012 Posted February 4, 2012 function setOnFire(attacker, attackerweapon, bodypart, loss) if (attackerweapon == 6) and (loss > 1) then setPedOnFire(source, true) end end addEventHandler ("onClientPlayerDamage", getRootElement(), setOnFire) This is client side only.
zombienation Posted February 6, 2012 Author Posted February 6, 2012 is there a possibility to use the fire effect on zombies?
Castillo Posted February 6, 2012 Posted February 6, 2012 function setOnFire(attacker, attackerweapon, bodypart, loss) if (getElementData(source,"zombie") and attackerweapon == 6) and (loss > 1) then setPedOnFire(source, true) end end addEventHandler ("onClientPedDamage", getRootElement(), setOnFire)
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