IMyProgrammableBlockTryRun Method |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
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.
Namespace: Sandbox.ModAPI.IngameAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax bool TryRun(
string argument
)
Function TryRun (
argument As String
) As Boolean
bool TryRun(
String^ argument
)
abstract TryRun :
argument : string -> bool
Parameters
- argument
- Type: SystemString
Return Value
Type:
Booleantrue if the action was applied,
false otherwise
See Also