Object::setStateOfClosestDoorOfType

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Hardcoded to not work in multiplayer.


Used to lock/unlock doors to interior areas of the game.

(Possible) Door Types:

pastebin.com/9S2m3qA4

Heading is either 1, 0 or -1 in the scripts. Means default closed(0) or opened either into(1) or out(-1) of the interior.
Locked means that the heading is locked.
p6 is always 0.

225 door types, model names and coords found in stripclub.c4:
pastebin.com/gywnbzsH

get door info: pastebin.com/i14rbekD

Syntax

mp.game.object.setStateOfClosestDoorOfType(type, x, y, z, locked, heading, p6);

Required Arguments

  • type: Model hash or name
  • x: float
  • y: float
  • z: float
  • locked: Boolean
  • heading: float
  • p6: Boolean

Return value

  • Undefined

Example

// todo

See also