Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 1.16 KB

DoorControl.md

File metadata and controls

33 lines (28 loc) · 1.16 KB
ns
OBJECT

_DOOR_CONTROL

// 0x9B12F9A24FABEDB0 0x4E0A260B
void _DOOR_CONTROL(Hash modelHash, float x, float y, float z, BOOL locked, float xRotMult, float yRotMult, float zRotMult);

Hardcoded not to work in multiplayer environments. Native name between SET_LOCAL_PLAYER_VISIBLE_LOCALLY & SET_MAX_WANTED_LEVEL.

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

Parameters

  • modelHash:
  • x:
  • y:
  • z:
  • locked: tells the game whether or not the door is locked
  • xRotMult: multiplier that specifies how fast the door/gate will rotate in degrees per second.
  • yRotMult: multiplier that specifies how fast the door/gate will rotate in degrees per second.
  • zRotMult: multiplier that specifies how fast the door/gate will rotate in degrees per second.

Examples

DoorControl(`prop_gate_prison_01`, 1845.0, 2605.0, 45.0, 0, 0.0, 50.0, 0) -- door unlocked
DoorControl(`prop_gate_prison_01`, 1845.0, 2605.0, 45.0, 1, 0.0, 50.0, 0) -- door locked