Interface IMyProgrammableBlock
Describes programmable block (PB scripting interface)
Inherited Members
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyProgrammableBlock : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity, IMyTextSurfaceProvider
Properties
IsRunning
Get whether this programmable block is currently running its program.
Declaration
bool IsRunning { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TerminalRunArgument
Get default terminal argument.
Declaration
string TerminalRunArgument { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
TryRun(String)
Attempts to run this programmable block using the given argument. An already running
programmable block cannot be run again.
This is equivalent to running block.ApplyAction("Run", argumentsList);
This should be called from an ingame script. Do not use in mods.
Declaration
bool TryRun(string argument)
Parameters
Type | Name | Description |
---|---|---|
System.String | argument |
Returns
Type | Description |
---|---|
System.Boolean |
|