Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Sandbox.ModAPI.Ingame.IMyProgrammableBlock.TryRun

Malware edited this page Dec 13, 2025 · 18 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

IndexNamespace IndexIMyProgrammableBlock

Summary

public bool TryRun(string argument)

Attempts to run this programmable block using the given argument. An already running programmable block cannot be run again. This is equivalent to runningblock.ApplyAction("Run", argumentsList);This should be called from an ingame script. Do not use in mods.

Returns

bool

trueif the action was applied,falseotherwise

Parameters

Clone this wiki locally