Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.IMyProgrammableBlock.TryRun

Morten Aune Lyrstad edited this page Jun 28, 2020 · 17 revisions

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