Arma 3 Scripting

Command in Mission Information

worldSize

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the engine calculated size (terrain side length) of the current world in meters. In Arma, terrains are always square. (BIS_fnc_mapSize may return the same value, but is just a simple look up in config).

Syntax

worldSize

Returns: Number

Examples

Example 1

private _size = worldSize; // VR and Stratis: 8192; Altis: 30720

Example 2

// A round marker that should cover the whole map, placed in the center of the map, should have the following radius (a, b)
private _radius = sqrt 2 / 2 * worldSize;

Example 3

private _axis = worldSize / 2;
private _center = [_axis, _axis , 0];
private _radius = sqrt 2 * _axis;

See also

BIS_fnc_mapSize · getTerrainInfo