Vehicle::setVehicleShootAtTarget

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

Commands the driver of an armed vehicle (p0) to shoot its weapon at a target (p1). p3, p4 and p5 are the coordinates of the target. Example:

WEAPON::SET_CURRENT_PED_VEHICLE_WEAPON(pilot,GAMEPLAY::GET_HASH_KEY('VEHICLE_WEAPON_PLANE_ROCKET')); VEHICLE::SET_VEHICLE_SHOOT_AT_TARGET(pilot, target, targPos.x, targPos.y, targPos.z);

Syntax

vehicle.setVehicleShootAtTarget(driver, entity, xTarget, yTarget, zTarget);

Required Arguments

  • driver: Ped handle or object
  • entity: Entity handle or object
  • xTarget: float
  • yTarget: float
  • zTarget: float

Return value

  • Undefined

Example

todo

See also