* Added osRegionRestart(float secs) to LSL Commands
* Added osRegionNotice(string msg) to LSL Commands * Added PermissionManager checks for osTerrainSetHeight, osRegionRestart.afrisby
parent
8b6dd623bd
commit
af406bf6fa
|
@ -2878,8 +2878,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
||||||
//
|
//
|
||||||
public int osTerrainSetHeight(int x, int y, double val)
|
public int osTerrainSetHeight(int x, int y, double val)
|
||||||
{
|
{
|
||||||
World.Terrain.Set(x, y, val);
|
if (World.PermissionsMngr.CanTerraform(m_host.OwnerID, new LLVector3(x, y, 0)))
|
||||||
return 1;
|
{
|
||||||
|
World.Terrain.Set(x, y, val);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public double osTerrainGetHeight(int x, int y)
|
public double osTerrainGetHeight(int x, int y)
|
||||||
|
@ -2887,6 +2894,24 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
||||||
return World.Terrain.GetHeight(x, y);
|
return World.Terrain.GetHeight(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int osRegionRestart(double seconds)
|
||||||
|
{
|
||||||
|
if (World.PermissionsMngr.CanRestartSim(m_host.OwnerID))
|
||||||
|
{
|
||||||
|
World.Restart((float)ms);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void osRegionNotice(string msg)
|
||||||
|
{
|
||||||
|
World.SendGeneralAlert(msg);
|
||||||
|
}
|
||||||
|
|
||||||
public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
|
public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
|
||||||
int timer)
|
int timer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue