Instal Steam
login
|
bahasa
简体中文 (Tionghoa Sederhana)
繁體中文 (Tionghoa Tradisional)
日本語 (Bahasa Jepang)
한국어 (Bahasa Korea)
ไทย (Bahasa Thai)
Български (Bahasa Bulgaria)
Čeština (Bahasa Ceko)
Dansk (Bahasa Denmark)
Deutsch (Bahasa Jerman)
English (Bahasa Inggris)
Español - España (Bahasa Spanyol - Spanyol)
Español - Latinoamérica (Bahasa Spanyol - Amerika Latin)
Ελληνικά (Bahasa Yunani)
Français (Bahasa Prancis)
Italiano (Bahasa Italia)
Magyar (Bahasa Hungaria)
Nederlands (Bahasa Belanda)
Norsk (Bahasa Norwegia)
Polski (Bahasa Polandia)
Português (Portugis - Portugal)
Português-Brasil (Bahasa Portugis-Brasil)
Română (Bahasa Rumania)
Русский (Bahasa Rusia)
Suomi (Bahasa Finlandia)
Svenska (Bahasa Swedia)
Türkçe (Bahasa Turki)
Tiếng Việt (Bahasa Vietnam)
Українська (Bahasa Ukraina)
Laporkan kesalahan penerjemahan
Apply("Some Cached Command")
in the logic or UI function, it'll work fine. In fact, you can call cached commands from within cached commands.
But calling logic or UI functions from within a cached command is a serious recursion risk - what are you trying to do? There's probably a better way to do it.
To set an arbitrary boolean, use
Set("Arbitrary boolean of any name") in the code, or
"Set(Arbitrary boolean of any name)" in a cached command/run call argument
Use UnSet to clear it.
You can check the state of them in the UI or logic functions using IsSet.
Right now, there is no way to check a value in a cached command/run call argument, because I don't know how that would work.
If (IsSet(triggerbool)) // emulates Trigger Now;
{
If (IsSet(BehaviorA-On); //Behavior A looks for more rock to mine, Continuing Mining Loop
{
Apply(CachedcommandA;
Unset(triggerbool):
}
Else If (IsSet(BehaviorB-On); //Behavior B Initiates the return home, Breaking out of the mining loop
{
Apply(CachedcommandB);
Unset(triggerbool):
}
And let the cached commands set to "On" bools
if (IsSet("Name"))
Can I use custom names for landing gears with that code? Or it affect all the landing gears?
Thanks again