Vehicle::setVehicleShootAtTarget: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
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:<br><br>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);
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:<br><br>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==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setVehicleShootAtTarget(driver, entity, xTarget, yTarget, zTarget);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.setVehicleShootAtTarget(driver, entity, xTarget, yTarget, zTarget);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''driver:''' Ped handle or object
*'''driver:''' Ped handle or object
Line 12: Line 12:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:34, 6 May 2017

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

mp.game.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