Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llSensor C# (CSharp) Method

llSensor() public method

public llSensor ( string name, string id, int type, double range, double arc ) : void
name string
id string
type int
range double
arc double
return void
        public void llSensor(string name, string id, int type, double range, double arc)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;

            UUID keyID = UUID.Zero;
            UUID.TryParse(id, out keyID);
            SensorRepeatPlugin sensorPlugin = (SensorRepeatPlugin)m_ScriptEngine.GetScriptPlugin("SensorRepeat");
            sensorPlugin.SenseOnce(m_host.UUID, m_itemID, name, keyID, type, range, arc, m_host);
        }
LSL_Api