From 87e2793ca6672ddcfb54de9dd3c1e16008da5956 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 25 Apr 2008 10:37:22 +0000 Subject: * Applying mantis#1048 - Patch for osSetRegionWaterHeight() --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs') 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 return LLUUID.Zero; } + public void osSetRegionWaterHeight(double height) + { + m_host.AddScriptLPS(1); + //Check to make sure that the script's owner is the estate manager/master + //World.PermissionsMngr.GenericEstatePermission( + if (World.PermissionsMngr.GenericEstatePermission(m_host.OwnerID)) + { + World.EstateManager.setRegionSettings((float)height, 0f, 0f, false, 0.5f); + World.EstateManager.sendRegionInfoPacketToAll(); + } + } + //These are the implementations of the various ll-functions used by the LSL scripts. //starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07 public double llSin(double f) -- cgit v1.1