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

Player::getAlertness

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

Returns the ped's alertness (0-3).

Values :

0 : Neutral
1 : Heard something (gun shot, hit, etc)
2 : Knows (the origin of the event)
3 : Fully alerted (is facing the event?)

MulleDK19: If the Ped does not exist, returns -1.

Syntax

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

Required Arguments

Return value

  • int

Example

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

See also