* 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
|
@ -2877,16 +2877,41 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
|||
// OpenSim functions
|
||||
//
|
||||
public int osTerrainSetHeight(int x, int y, double val)
|
||||
{
|
||||
if (World.PermissionsMngr.CanTerraform(m_host.OwnerID, new LLVector3(x, y, 0)))
|
||||
{
|
||||
World.Terrain.Set(x, y, val);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public double osTerrainGetHeight(int x, int 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,
|
||||
int timer)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue