Object::setDoorAjarAngle: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
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">mp.game.object.setDoorAjarAngle(doorHash, ajar, p2, p3);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.setDoorAjarAngle(doorHash, ajar, p2, p3);</syntaxhighlight>

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