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

llScriptDanger() public method

public llScriptDanger ( Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3 pos ) : Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLInteger
pos Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Vector3
return Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.LSLInteger
        public LSL_Integer llScriptDanger(LSL_Vector pos)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return 0;

            bool result = m_ScriptEngine.PipeEventsForScript(m_host, new Vector3((float)pos.x, (float)pos.y, (float)pos.z));
            if (result)
            {
                return 1;
            }
            return 0;
        }
LSL_Api