aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-25 10:37:22 +0000
committerAdam Frisby2008-04-25 10:37:22 +0000
commit87e2793ca6672ddcfb54de9dd3c1e16008da5956 (patch)
treea7870b0c79e4f948262d9c39545d4a86e8b7ad8e /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
parent* Used thomas' patch m884 as an example to make HUD attachments work. While... (diff)
downloadopensim-SC_OLD-87e2793ca6672ddcfb54de9dd3c1e16008da5956.zip
opensim-SC_OLD-87e2793ca6672ddcfb54de9dd3c1e16008da5956.tar.gz
opensim-SC_OLD-87e2793ca6672ddcfb54de9dd3c1e16008da5956.tar.bz2
opensim-SC_OLD-87e2793ca6672ddcfb54de9dd3c1e16008da5956.tar.xz
* Applying mantis#1048 - Patch for osSetRegionWaterHeight()
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 79b13cf..2b09bea 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -166,6 +166,18 @@ namespace OpenSim.Region.ScriptEngine.Common
166 return LLUUID.Zero; 166 return LLUUID.Zero;
167 } 167 }
168 168
169 public void osSetRegionWaterHeight(double height)
170 {
171 m_host.AddScriptLPS(1);
172 //Check to make sure that the script's owner is the estate manager/master
173 //World.PermissionsMngr.GenericEstatePermission(
174 if (World.PermissionsMngr.GenericEstatePermission(m_host.OwnerID))
175 {
176 World.EstateManager.setRegionSettings((float)height, 0f, 0f, false, 0.5f);
177 World.EstateManager.sendRegionInfoPacketToAll();
178 }
179 }
180
169 //These are the implementations of the various ll-functions used by the LSL scripts. 181 //These are the implementations of the various ll-functions used by the LSL scripts.
170 //starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07 182 //starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07
171 public double llSin(double f) 183 public double llSin(double f)