* Added osTerrainSetHeight(int x, int y, double val) to LSL commands

* Added osTerrainGetHeight(int x, int y) to LSL commands
This commit is contained in:
Adam Frisby
2007-12-27 05:20:03 +00:00
parent 87d55443d3
commit 8b6dd623bd
3 changed files with 27 additions and 0 deletions

View File

@@ -2876,6 +2876,17 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
//
// OpenSim functions
//
public int osTerrainSetHeight(int x, int y, double val)
{
World.Terrain.Set(x, y, val);
return 1;
}
public double osTerrainGetHeight(int x, int y)
{
return World.Terrain.GetHeight(x, y);
}
public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
int timer)
{