Перейти к содержанию

Player::getSourceOfDeath

Материал из RAGE MP Wiki Archive

Returns the Entity (Ped, Vehicle, or ?Object?) that killed the 'ped'

Is best to check if the Ped is dead before asking for its killer.

Syntax

<syntaxhighlight lang="javascript">player.getSourceOfDeath();</syntaxhighlight>

Required Arguments

Return value

  • Entity handle or object

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also