diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 12 |
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) |