OnClientPlayerHeliKilled

From Multi Theft Auto: Wiki
Revision as of 08:17, 3 May 2012 by Qaisjp (talk | contribs) (Created page with "__NOTOC__ {{Client event}} This event is fired when a player is killed due to the effect of a helicopter blades ==Parameters== <syntaxhighlight lang="lua"> vehicle killer </syntaxhighlight> *'''killer:'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is fired when a player is killed due to the effect of a helicopter blades

Parameters

vehicle killer
  • killer: the vehicle (heli) responsible for causing the death.

Source

The source of this event is the player who was killed

Cancel effect

If this event is canceled, the player will not be killed

Example

Click to collapse [-]
Client

This example disables helicopter killing

function cancelDeath()
	cancelEvent()
end
addEventHandler("onClientPlayerHeliKilled", getLocalPlayer(), cancelDeath)

See Also

Client player events


Client event functions