* Applying mantis#1048 - Patch for osSetRegionWaterHeight()

This commit is contained in:
Adam Frisby
2008-04-25 10:37:22 +00:00
parent 421730d972
commit 87e2793ca6
5 changed files with 20 additions and 3 deletions

View File

@@ -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)