OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osSetTerrainTextureHeight C# (CSharp) Method

osSetTerrainTextureHeight() public method

Sets terrain heights of estate
public osSetTerrainTextureHeight ( int corner, double low, double high ) : void
corner int
low double
high double
return void
        public void osSetTerrainTextureHeight(int corner, double low, double high)
        {
            CheckThreatLevel(ThreatLevel.High, "osSetTerrainTextureHeight");

            m_host.AddScriptLPS(1);
            //Check to make sure that the script's owner is the estate manager/master
            //World.Permissions.GenericEstatePermission(
            if (World.Permissions.IsGod(m_host.OwnerID))
            {
                if (corner < 0 || corner > 3)
                    return;

                // estate module is required
                IEstateModule estate = World.RequestModuleInterface<IEstateModule>();
                if (estate != null)
                    estate.setEstateTerrainTextureHeights(corner, (float)low, (float)high);
            }
        }
OSSL_Api