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

Player::setCanAttackFriendly

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

Setting ped to true allows the ped to shoot 'friendlies'.

p2 set to true when toggle is also true seams to make peds permanently unable to aim at, even if you set p2 back to false.

p1 = false & p2 = false for unable to aim at.
p1 = true & p2 = false for able to aim at.

Syntax

<syntaxhighlight lang="javascript">player.setCanAttackFriendly(toggle, p2);</syntaxhighlight>

Required Arguments

  • toggle: Boolean
  • p2: Boolean

Return value

  • Undefined

Example

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

See also