Interface IMyMechanicalConnectionBlock
Describes blocks linked with Mechanical connection (PB scripting interface)
Inherited Members
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyMechanicalConnectionBlock : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
IsAttached
Gets if the block base is attached to something
Declaration
bool IsAttached { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsLocked
Gets if the block is safety locked (welded)
Declaration
bool IsLocked { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PendingAttachment
Gets if the block is looking for a top part
Declaration
bool PendingAttachment { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SafetyLock
Gets if the block is safety locked (welded)
Declaration
bool SafetyLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SafetyLockSpeed
Gets or sets the speed at which this device will engage it's safety lock (IsLocked).
Declaration
float SafetyLockSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Top
Gets the attached top part entity
Declaration
IMyAttachableTopBlock Top { get; }
Property Value
Type | Description |
---|---|
IMyAttachableTopBlock |
TopGrid
Gets the grid of the attached top part
Declaration
IMyCubeGrid TopGrid { get; }
Property Value
Type | Description |
---|---|
IMyCubeGrid |
Methods
Attach()
Attaches a nearby top part to the block
Declaration
void Attach()
Detach()
Detaches the top from the base
Declaration
void Detach()