Object::hasPickupBeenCollected: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.hasPickupBeenCollected(p0);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.hasPickupBeenCollected(p0);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' unknown (to be checked)
*'''Pickup:''' int (Pickup handle)
===Return value===
===Return value===
*'''Boolean'''
*'''Boolean'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
let pickupHandle = mp.game.object.createPickupRotate(-1888453608, 1985.56, 3050.966 + 3, 47.21, 0, 0, 0, 8, 50, 0, true, mp.game.joaat('prop_ld_health_pack'));
if (mp.game.object.hasPickupBeenCollected(pickupHandle)) // do something
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Object_function_c}}
{{Object_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Latest revision as of 20:22, 30 May 2019

Syntax

mp.game.object.hasPickupBeenCollected(p0);

Required Arguments

  • Pickup: int (Pickup handle)

Return value

  • Boolean

Example

let pickupHandle = mp.game.object.createPickupRotate(-1888453608, 1985.56, 3050.966 + 3, 47.21, 0, 0, 0, 8, 50, 0, true, mp.game.joaat('prop_ld_health_pack'));
if (mp.game.object.hasPickupBeenCollected(pickupHandle)) // do something

See also

  • [[Object::disableGlow|mp.game.object.disableGlow