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

Player::setCanCowerInCover

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

It simply makes the said ped to cower behind cover object(wall, desk, car)

Peds flee attributes must be set to not to flee, first. Else, most of the peds, will just flee from gunshot sounds or any other panic situations.

-YCSM

Syntax

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

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

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

See also