Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llSetScriptState C# (CSharp) Метод

llSetScriptState() публичный Метод

public llSetScriptState ( string name, int run ) : void
name string
run int
Результат void
        public void llSetScriptState(string name, int run)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;
            UUID item;



            // These functions are supposed to be robust,
            // so get the state one step at a time.

            if ((item = ScriptByName(name)) != UUID.Zero)
            {
                m_ScriptEngine.SetScriptRunningState(item, run == 1);
            }
            else
            {
                ShoutError("llSetScriptState: script " + name + " not found");
            }
        }
LSL_Api