Get Area Number
GetAreaNumber() as ID
This is a server-side function which returns the area number (ID) of the current area. If called at the world level, it returns 0.
For more information see: Area Server
To obtain the area number on the client side, use the $BASECLIENT system node, such as $BASECLIENT._AreaID.
// The below example would tell you the current area's ID number as ID number = GetAreaNumber() println("Number: "+number)