Player::setMountedWeaponTarget

From RAGE Multiplayer Wiki
Revision as of 23:40, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

player.setMountedWeaponTarget(targetEntity, p2, x, y, z);

Required Arguments

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

Return value

  • Undefined

Example

// todo

See also