aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorTeravus Ovares2008-05-06 02:47:14 +0000
committerTeravus Ovares2008-05-06 02:47:14 +0000
commitadd13276a98e572bf4f83e79cfe1fa4d3f4411df (patch)
tree063b5b062eae428b635ce12ccbd7c46fcf63a5bc /OpenSim/Region/ScriptEngine/Common
parent* If you llApplyImpulse on an attachment, it applies impulse on the avatar, n... (diff)
downloadopensim-SC-add13276a98e572bf4f83e79cfe1fa4d3f4411df.zip
opensim-SC-add13276a98e572bf4f83e79cfe1fa4d3f4411df.tar.gz
opensim-SC-add13276a98e572bf4f83e79cfe1fa4d3f4411df.tar.bz2
opensim-SC-add13276a98e572bf4f83e79cfe1fa4d3f4411df.tar.xz
* Committing a bunch of work for control snatching. Not done yet. No visible features.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 54c26d9..59afe32 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -1936,6 +1936,17 @@ namespace OpenSim.Region.ScriptEngine.Common
1936 1936
1937 public void llTakeControls(int controls, int accept, int pass_on) 1937 public void llTakeControls(int controls, int accept, int pass_on)
1938 { 1938 {
1939 if (m_host.TaskInventory[InventorySelf()].PermsGranter != LLUUID.Zero)
1940 {
1941
1942 ScenePresence presence = World.m_innerScene.ScenePresences[m_host.TaskInventory[InventorySelf()].PermsGranter];
1943 if ((m_host.TaskInventory[InventorySelf()].PermsMask & BuiltIn_Commands_BaseClass.PERMISSION_TAKE_CONTROLS) != 0)
1944 {
1945 presence.SendMovementEventsToScript(controls, accept, pass_on, m_localID, m_itemID);
1946
1947 }
1948 }
1949
1939 m_host.AddScriptLPS(1); 1950 m_host.AddScriptLPS(1);
1940 NotImplemented("llTakeControls"); 1951 NotImplemented("llTakeControls");
1941 } 1952 }