Object::createPickupRotate: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
Line 19: Line 19:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
// adds a health pickup of 50 hp at the bar in sandy shores on the ground.
  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'));
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Object_s_function_c}}
{{Object_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Revision as of 15:58, 17 September 2018

flags:
8 (1 << 3): place on ground
512 (1 << 9): spin around

Syntax

mp.game.object.createPickupRotate(pickupHash, posX, posY, posZ, rotX, rotY, rotZ, flag, amount, p9, p10, modelHash);

Required Arguments

  • pickupHash: Model hash or name
  • posX: float
  • posY: float
  • posZ: float
  • rotX: float
  • rotY: float
  • rotZ: float
  • flag: int
  • amount: int
  • p9: unknown (to be checked)
  • p10: Boolean
  • modelHash: Model hash or name

Return value

  • Pickup

Example

// adds a health pickup of 50 hp at the bar in sandy shores on the ground.
   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'));

See also

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