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

Player::getAlertness

Материал из RAGE MP Wiki Archive
Версия от 23:46, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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