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

handleScriptAnswer() private method

private handleScriptAnswer ( IClientAPI client, UUID taskID, UUID itemID, int answer ) : void
client IClientAPI
taskID UUID
itemID UUID
answer int
return void
        void handleScriptAnswer(IClientAPI client, UUID taskID, UUID itemID, int answer)
        {
            if (taskID != m_host.UUID)
                return;

            client.OnScriptAnswer -= handleScriptAnswer;
            m_waitingForScriptAnswer = false;

            if ((answer & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) == 0)
                llReleaseControls();

            m_host.TaskInventory.LockItemsForWrite(true);
            m_host.TaskInventory[m_item.ItemID].PermsMask = answer;
            m_host.TaskInventory.LockItemsForWrite(false);
            
            m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams(
                    "run_time_permissions", new Object[] {
                    new LSL_Integer(answer) },
                    new DetectParams[0]));
        }
LSL_Api