SetDoorLockState

From Nomad DB
Revision as of 19:34, 16 April 2020 by Cobra (talk | contribs) (Created page with "Locks or unlocks the specified door entity (entities that have a ''CDoorComponent''). == Syntax == <syntaxhighlight lang="lua"> SetDoorLockState(doorEntityId, lockState) </sy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Locks or unlocks the specified door entity (entities that have a CDoorComponent).

Syntax

SetDoorLockState(doorEntityId, lockState)
  • doorEntityId (string): ID of the door entity to set the lock state of
  • lockState (number): Lock state to set (0 = unlock; 1 = lock)

Example

Closes the specified door entity.

SetDoorLockState("123", 0)

Related Pages