Interface IMyDoor
Describes door block (PB scripting interface)
Inherited Members
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyDoor : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
Open
Indicates whether door is opened or closed. True when door is opened.
Declaration
bool Open { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
OpenRatio
The current, accurate ratio of the door's current state where 0 is fully closed and 1 is fully open.
Declaration
float OpenRatio { get; }
Property Value
Type | Description |
---|---|
System.Single |
Status
Determines the current general status of the door.
Declaration
DoorStatus Status { get; }
Property Value
Type | Description |
---|---|
DoorStatus |
Methods
CloseDoor()
Closes the door. See Status to get the current status.
Declaration
void CloseDoor()
OpenDoor()
Opens the door. See Status to get the current status.
Declaration
void OpenDoor()
ToggleDoor()
Toggles the open state of this door. See Status to get the current status.
Declaration
void ToggleDoor()