Object::setStateOfClosestDoorOfType: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Hardcoded to not work in multiplayer.<br><br><br>Used to lock/unlock doors to interior areas of the game.<br><br>(Possible) Door Types:<br><br>pastebin.com/9S2m3qA4<br><br>Heading is either 1, 0 or -1 in the scripts. Means default closed(0) or opened either into(1) or out(-1) of the interior.<br>Locked means that the heading is locked.  <br>p6 is always 0. <br><br>225 door types, model names and coords found in stripclub.c4:<br>pastebin.com/gywnbzsH<br><br>get door info: pastebin.com/i14rbekD
Hardcoded to not work in multiplayer.<br><br><br>Used to lock/unlock doors to interior areas of the game.<br><br>(Possible) Door Types:<br><br>pastebin.com/9S2m3qA4<br><br>Heading is either 1, 0 or -1 in the scripts. Means default closed(0) or opened either into(1) or out(-1) of the interior.<br>Locked means that the heading is locked.  <br>p6 is always 0. <br><br>225 door types, model names and coords found in stripclub.c4:<br>pastebin.com/gywnbzsH<br><br>get door info: pastebin.com/i14rbekD
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.setStateOfClosestDoorOfType(type, x, y, z, locked, heading, p6);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.setStateOfClosestDoorOfType(type, x, y, z, locked, heading, p6);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''type:''' Model hash or name
*'''type:''' Model hash or name
Line 14: Line 14:
==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

Hardcoded to not work in multiplayer.


Used to lock/unlock doors to interior areas of the game.

(Possible) Door Types:

pastebin.com/9S2m3qA4

Heading is either 1, 0 or -1 in the scripts. Means default closed(0) or opened either into(1) or out(-1) of the interior.
Locked means that the heading is locked.
p6 is always 0.

225 door types, model names and coords found in stripclub.c4:
pastebin.com/gywnbzsH

get door info: pastebin.com/i14rbekD

Syntax

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

Required Arguments

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

Return value

  • Undefined

Example

// todo

See also

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