CreateDoor: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 13: Line 13:
{{FuncParam|z|World Z location.}}
{{FuncParam|z|World Z location.}}
{{FuncParam|rotation|Yaw rotation of the door.}}
{{FuncParam|rotation|Yaw rotation of the door.}}
{{FuncParamOptional|bEnableInteract|__EDIT_ME__}}
{{FuncParamOptional|bEnableInteract|'''true''' means it will send a request to the server when the player presses the 'E' key. '''false''' to disable that.}}


{{FuncReturnValue|Returns the identifier to the door.}}
{{FuncReturnValue|Returns the identifier to the door.}}

Revision as of 20:30, 24 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)
    true means it will send a request to the server when the player presses the 'E' key. false to disable that.

Return Value

  • Returns the identifier to the door.

Example

__EDIT_ME__

See also

__EDIT_ME__