Difference between revisions of "OpenDoor"

From Nomad DB
(Created page with "Opens the specified door entity (entities that have a ''CDoorComponent''). == Syntax == <syntaxhighlight lang="lua"> OpenDoor(doorEntityId, instant, openToMaxAngle) </syntaxh...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{Page_WD2}}
 
Opens the specified door entity (entities that have a ''CDoorComponent'').
 
Opens the specified door entity (entities that have a ''CDoorComponent'').
  
Line 18: Line 19:
 
* [[Entity]]
 
* [[Entity]]
 
* [[EntityId]]
 
* [[EntityId]]
 +
* [[CloseDoor]]
 +
* [[SetDoorLockState]]
  
 
[[Category:WD2 Lua]] [[Category: WD2 Entity]]
 
[[Category:WD2 Lua]] [[Category: WD2 Entity]]

Latest revision as of 20:38, 27 October 2020

Opens the specified door entity (entities that have a CDoorComponent).

Syntax

OpenDoor(doorEntityId, instant, openToMaxAngle)
  • doorEntityId (string): ID of the door entity to open
  • instant (number): Whether to open the door instantly or not (0 or 1)
  • openToMaxAngle (number): Whether to open the door to its maximum angle or not (0 or 1)

Example

Opens the specified door entity.

OpenDoor("123", 1, 1)

Related Pages