backIndex

Xelagot action script

Terrain

Terrain was introduced with version 3.3 of world servers. Terrain data are cached in the folder Terrain. The action script has a few statements for sensing terrain heights and applying them to various functions:

Besides this, terrain can be tested and terrain data can be retrieved directly with the following statements:

IfHasTerrain statement1
Else statement2
tests the world build and whether terrain is enabled: i.e. tests whether there is a visible terrain
IfGetTerAlt %a @b statement1
Else statement2
tests whether a terrain page has been downloaded at location @b, and if so stores in metres (with double precision float) the value of the terrain altitude at that point in variable %a and executes the statement (an optional else clause can follow).
IfGetTerAvAlt %a @b statement1
Else statement2
tests whether a terrain page has been downloaded at location @b, and if so stores in metres (with a precision of 1 cm) the value of the terrain altitude for avatar positioning at that point in variable %a and executes the statement (an optional else clause can follow). If the terrain is irregular, this value can be slightly higher than the one obtained with IfGetTerAlt.


backIndex