Difference between revisions of "SetDoorLockState"

From Nomad DB
(Created page with "Locks or unlocks the specified door entity (entities that have a ''CDoorComponent''). == Syntax == <syntaxhighlight lang="lua"> SetDoorLockState(doorEntityId, lockState) </sy...")
 
 
Line 1: Line 1:
 +
{{Page_WD2}}
 
Locks or unlocks the specified door entity (entities that have a ''CDoorComponent'').
 
Locks or unlocks the specified door entity (entities that have a ''CDoorComponent'').
  

Latest revision as of 20:37, 27 October 2020

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