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

Player::taskGoToWhileAimingAt

Материал из RAGE MP Wiki Archive
Версия от 14:37, 7 мая 2017; imported>Ragempdev (Ragempdev moved page Player::taskGoToWhileAimingAtEntity to Player::taskGoToWhileAimingAt)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

shootatEntity:
If true, peds will shoot at Entity till it is dead.
If false, peds will just walk till they reach the entity and will cease shooting.

Syntax

<syntaxhighlight lang="javascript">player.taskGoToWhileAimingAtEntity(entityToWalkTo, entityToAimAt, speed, shootatEntity, p5, p6, p7, p8, firingPattern);</syntaxhighlight>

Required Arguments

  • entityToWalkTo: Entity handle or object
  • entityToAimAt: Entity handle or object
  • speed: float
  • shootatEntity: Boolean
  • p5: float
  • p6: float
  • p7: Boolean
  • p8: Boolean
  • firingPattern: Model hash or name

Return value

  • Undefined

Example

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

See also