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

Player::setMountedWeaponTarget

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

Note: Look in decompiled scripts and the times that p1 and p2 aren't 0. They are filled with vars. If you look through out that script what other natives those vars are used in, you can tell p1 is a ped and p2 is a vehicle. Which most likely means if you want the mounted weapon to target a ped set targetVehicle to 0 or vice-versa.

Syntax

<syntaxhighlight lang="javascript">player.setMountedWeaponTarget(targetEntity, p2, x, y, z);</syntaxhighlight>

Required Arguments

  • targetEntity: Entity handle or object
  • p2: unknown (to be checked)
  • x: float
  • y: float
  • z: float

Return value

  • Undefined

Example

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

See also