Object::getStateOfClosestDoorOfType

From RAGE Multiplayer Wiki
Revision as of 20:48, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

locked is 0 if no door is found
locked is 0 if door is unlocked
locked is 1 if door is found and unlocked.

-------------
the locked bool is either 0(unlocked)(false) or 1(locked)(true)

Syntax

object.getStateOfClosestDoorOfType(type, x, y, z, locked, heading);

Required Arguments

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

Return value

  • object: locked, heading

Example

todo

See also

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