OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llSetScriptState C# (CSharp) Method

llSetScriptState() public method

public llSetScriptState ( string name, int run ) : void
name string
run int
return void
        public void llSetScriptState(string name, int run)
        {
            UUID item;

            m_host.AddScriptLPS(1);

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

            if ((item = GetScriptByName(name)) != UUID.Zero)
            {
                m_ScriptEngine.SetScriptState(item, run == 0 ? false : true, item == m_item.ItemID);
            }
            else
            {
                Error("llSetScriptState", "Can't find script '" + name + "'");
            }
        }
LSL_Api