Lua API
On this page
Position
Inherits from
A position represents a specific place in the game world. This includes a landblock, plus a Frame to determine its offset.
Fields:
C number
static
Landcell number
The landcell
MaxCoord number
static
Constructors:
New() :
Methods:
DistanceTo2D(position: Position) : number
Get the 2D distance between two positions
Name | Type | Default | Summary |
position | Position | The position to get the distance to from this one |
Returns:number
DistanceTo3D(position: Position) : number
Get the 3D distance between two positions
Name | Type | Default | Summary |
position | Position | The position to get the distance to from this one |
Returns:number
EWToLandblock(landcell: number, ew: number) : number
static
Parameters:Name | Type | Default | Summary |
landcell | number | ||
ew | number |
Returns:number
GetLandblockFromCoordinates(EW: number, NS: number) : number
static
Parameters:Name | Type | Default | Summary |
EW | number | ||
NS | number |
Returns:number
GetLandblockFromCoordinates(EW: number, NS: number) : number
static
Parameters:Name | Type | Default | Summary |
EW | number | ||
NS | number |
Returns:number