Difference between revisions of "CreateDoor"

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Creates stateful doors which can be interacted with by players by pressing 'E'. Some of them are physics doors meaning they are...")
 
 
Line 1: Line 1:
 
{{Info|Function|Server|1.0}}
 
{{Info|Function|Server|1.0}}
  
{{FuncDescription|Creates stateful doors which can be interacted with by players by pressing 'E'. Some of them are physics doors meaning they are pushed open by running against them.}}
+
{{FuncDescription|Creates stateful doors which can be interacted with by players by pressing 'E'. Some of them are physics doors meaning they are pushed open by running against them.
 +
 
 +
See available doors here [[Doors]].}}
  
 
{{FuncSyntax|CreateDoor(modelid, x, y, z, rotation [, bEnableInteract])}}
 
{{FuncSyntax|CreateDoor(modelid, x, y, z, rotation [, bEnableInteract])}}
  
 
{{FuncParameters}}
 
{{FuncParameters}}
{{FuncParam|modelid|__EDIT_ME__}}
+
{{FuncParam|modelid|The door from this list: [[Doors]].}}
{{FuncParam|x|__EDIT_ME__}}
+
{{FuncParam|x|World X location.}}
{{FuncParam|y|__EDIT_ME__}}
+
{{FuncParam|y|World Y location.}}
{{FuncParam|z|__EDIT_ME__}}
+
{{FuncParam|z|World Z location.}}
{{FuncParam|rotation|__EDIT_ME__}}
+
{{FuncParam|rotation|Yaw rotation of the door.}}
{{FuncParamOptional|bEnableInteract |__EDIT_ME__}}
+
{{FuncParamOptional|bEnableInteract|__EDIT_ME__}}
  
{{FuncReturnValue|__EDIT_ME__}}
+
{{FuncReturnValue|Returns the identifier to the door.}}
  
 
== Example ==
 
== Example ==

Latest revision as of 19:20, 7 October 2019

CreateDoor

Type: Function
Context: Server
Introduced: v1.0

Description

Creates stateful doors which can be interacted with by players by pressing 'E'. Some of them are physics doors meaning they are pushed open by running against them.

See available doors here Doors.

Syntax

CreateDoor(modelid, x, y, z, rotation [, bEnableInteract])

Parameters

  • modelid
    The door from this list: Doors.
  • x
    World X location.
  • y
    World Y location.
  • z
    World Z location.
  • rotation
    Yaw rotation of the door.
  • bEnableInteract (optional)
    __EDIT_ME__

Return Value

  • Returns the identifier to the door.

Example

__EDIT_ME__

See also

__EDIT_ME__