Object::doorControl: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
m (Added door hash link)
Line 1: Line 1:
when you set locked to 0 the door open and to 1 the door close<br>OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0);  //door open<br><br>OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0);  //door close<br><br>p5-7 - Rot?
when you set locked to 0 the door open and to 1 the door close<br>OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0);  //door open<br><br>OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0);  //door close<br><br>p5-7 - Rot?<br><br>doorHash = https://wiki.gtanet.work/index.php?title=Doors
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.object.doorControl(doorHash, x, y, z, locked, p5, p6, p7);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.object.doorControl(doorHash, x, y, z, locked, p5, p6, p7);</syntaxhighlight>

Revision as of 14:47, 8 December 2018

when you set locked to 0 the door open and to 1 the door close
OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0); //door open

OBJECT::_9B12F9A24FABEDB0(${prop_gate_prison_01}, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0); //door close

p5-7 - Rot?

doorHash = https://wiki.gtanet.work/index.php?title=Doors

Syntax

mp.game.object.doorControl(doorHash, x, y, z, locked, p5, p6, p7);

Required Arguments

  • doorHash: Model hash or name
  • x: float
  • y: float
  • z: float
  • locked: Boolean
  • p5: float
  • p6: float
  • p7: float

Return value

  • Undefined

Example

// todo

See also

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