From f9646a0c813545a6ea156e125764ba7aec191b1e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 9 Apr 2008 15:33:04 +0000 Subject: From: Michael Osias "This is llDetectedKey for touch_start - it is already implemented for sensor." Thanks Michael --- OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 763cc76..2f2b384 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs @@ -90,7 +90,10 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase public void touch_start(uint localID, LLVector3 offsetPos, IClientAPI remoteClient) { // Add to queue for all scripts in ObjectID object - myScriptEngine.m_EventQueueManager.AddToObjectQueue(localID, "touch_start", EventQueueManager.llDetectNull, new object[] { (int)1 }); + EventQueueManager.Queue_llDetectParams_Struct detstruct = new EventQueueManager.Queue_llDetectParams_Struct(); + detstruct._key = new LSL_Types.key[1]; + detstruct._key[0] = new LSL_Types.key(remoteClient.AgentId.ToString()); + myScriptEngine.m_EventQueueManager.AddToObjectQueue(localID, "touch_start", detstruct, new object[] { (int)1 }); } public void OnRezScript(uint localID, LLUUID itemID, string script) -- cgit v1.1