Object::setDoorAjarAngle: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Sets the ajar angle of a door.<br>Ranges from -1.0 to 1.0, and 0.0 is closed / default.<br><br>p2 is always 0, p3 is always 1.<br><br>
Sets the ajar angle of a door.<br>Ranges from -1.0 to 1.0, and 0.0 is closed / default.<br><br>p2 is always false, p3 is always true.<br><br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.setDoorAjarAngle(doorHash, ajar, p2, p3);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.setDoorAjarAngle(doorHash, ajar, p2, p3);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''doorHash:''' Model hash or name
*'''doorHash:''' Model hash or name
Line 11: Line 11:
==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 07:37, 18 February 2019

Sets the ajar angle of a door.
Ranges from -1.0 to 1.0, and 0.0 is closed / default.

p2 is always false, p3 is always true.

Syntax

mp.game.object.setDoorAjarAngle(doorHash, ajar, p2, p3);

Required Arguments

  • doorHash: Model hash or name
  • ajar: float
  • p2: Boolean
  • p3: Boolean

Return value

  • Undefined

Example

// todo

See also

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