Object::setDoorAccelerationLimit: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Sets the acceleration limit of a door.<br>How fast it can open, or the inverse hinge resistance.<br><br>A limit of 0 seems to lock doors.<br><br>p2 is always 0, p3 is always 1.<br><br>
Sets the acceleration limit of a door.<br>How fast it can open, or the inverse hinge resistance.<br><br>A limit of 0 seems to lock doors.<br><br>p2 is always 0, p3 is always 1.<br><br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">object.setDoorAccelerationLimit(doorHash, limit, p2, p3);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.setDoorAccelerationLimit(doorHash, limit, 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 21:28, 6 May 2017

Sets the acceleration limit of a door.
How fast it can open, or the inverse hinge resistance.

A limit of 0 seems to lock doors.

p2 is always 0, p3 is always 1.

Syntax

mp.game.object.setDoorAccelerationLimit(doorHash, limit, p2, p3);

Required Arguments

  • doorHash: Model hash or name
  • limit: int
  • p2: Boolean
  • p3: Boolean

Return value

  • Undefined

Example

// todo

See also

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