Object::getClosestObjectOfType: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(returns object handle not object)
Line 12: Line 12:
*'''p7:''' Boolean
*'''p7:''' Boolean
===Return value===
===Return value===
*'''Object handle or object'''
*'''Object handle'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Revision as of 22:41, 21 December 2018

Has 8 params in the latest patches.

isMission - if true doesn't return mission objects

Syntax

mp.game.object.getClosestObjectOfType(x, y, z, radius, modelHash, isMission, p6, p7);

Required Arguments

  • x: float
  • y: float
  • z: float
  • radius: float
  • modelHash: Model hash or name
  • isMission: Boolean
  • p6: Boolean
  • p7: Boolean

Return value

  • Object handle

Example

// todo

See also

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