Object::getStateOfClosestDoorOfType: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
locked is 0 if no door is found<br>locked is 0 if door is unlocked<br>locked is 1 if door is found and unlocked.<br><br>-------------<br>the locked bool is either 0(unlocked)(false) or 1(locked)(true)
locked is 0 if no door is found<br>locked is 0 if door is unlocked<br>locked is 1 if door is found and unlocked.<br><br>-------------<br>the locked bool is either 0(unlocked)(false) or 1(locked)(true)
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.getStateOfClosestDoorOfType(type, x, y, z, locked, heading);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.getStateOfClosestDoorOfType(type, x, y, z, locked, heading);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''type:''' Model hash or name
*'''type:''' Model hash or name
Line 13: Line 13:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Object_function_c}}
{{Object_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:28, 6 May 2017

locked is 0 if no door is found
locked is 0 if door is unlocked
locked is 1 if door is found and unlocked.

-------------
the locked bool is either 0(unlocked)(false) or 1(locked)(true)

Syntax

mp.game.object.getStateOfClosestDoorOfType(type, x, y, z, locked, heading);

Required Arguments

  • type: Model hash or name
  • x: float
  • y: float
  • z: float
  • locked: BOOL
  • heading: float

Return value

  • object: locked, heading

Example

// todo

See also

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