Weapon::hasVehicleGotProjectileAttached: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Third Parameter = unsure, but pretty sure it is weapon hash<br>--&gt; get_hash_key('weapon_stickybomb')<br><br>Fourth Parameter = unsure, almost always -1
Third Parameter = unsure, but pretty sure it is weapon hash<br>--&gt; get_hash_key('weapon_stickybomb')<br><br>Fourth Parameter = unsure, almost always -1
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">weapon.hasVehicleGotProjectileAttached(driver, vehicle, weapon, p3);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.hasVehicleGotProjectileAttached(driver, vehicle, weapon, p3);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''driver:''' Ped handle or object
*'''driver:''' Ped handle or object
Line 11: Line 11:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Weapon_function_c}}
{{Weapon_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:35, 6 May 2017

Third Parameter = unsure, but pretty sure it is weapon hash
--> get_hash_key('weapon_stickybomb')

Fourth Parameter = unsure, almost always -1

Syntax

mp.game.weapon.hasVehicleGotProjectileAttached(driver, vehicle, weapon, p3);

Required Arguments

  • driver: Ped handle or object
  • vehicle: Vehicle handle or object
  • weapon: Model hash or name
  • p3: unknown (to be checked)

Return value

  • Boolean

Example

// todo

See also