OnPedInflictDamage: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = onPedInflictDamage
|side = client
|type = event
|type = event
|name = onPedInflictDamage
|games = iii vc sa iv
|usage = a ped is damaged
|desc = a ped is damaged
|callbackParameters = Event event, Ped ped, Entity responsibleEntity, int weapon, float loss, int pedPiece
|arg1 = Ped ped The ped that has been damaged.
|parameter1 = Ped ped The ped that has been damaged.
|arg2 = Entity responsibleEntity The entity that is responsible for the damage.
|parameter2 = Entity responsibleEntity The entity that is responsible for the damage.
|arg3 = int weapon The weapon ID for the damage.
|parameter3 = int weapon The weapon ID for the damage.
|arg4 = float loss The ped health lost for the damage.
|parameter4 = float loss The ped health lost for the damage.
|arg5 = int pedPiece The ped piece ID for the damage.
|parameter5 = int pedPiece The ped piece ID for the damage.
|cancel = true
|cancellable = true
|exampleJSCS = addEventHandler('onPedInflictDamage', function(event, ped, responsibleEntity, weapon, loss, pedPiece)
|exampleJSCS = addEventHandler('onPedInflictDamage', function(event, ped, responsibleEntity, weapon, loss, pedPiece)
{
{
6,834

edits