Arma 3 Scripting

mapCenterOnCamera

  • Arma 3 v0.50
  • First in Arma 2 v1.02

Command · Markdown · JSON · original wiki page

Description

The main syntax enables/disables continuous centering of the main map type control on the camera position. Needs to be executed once.
The alternative syntax centers mini map type control on camera. Needs to be executed each frame (preferably inside an onDraw event handler).

Syntax

Syntax 1

mainmap mapCenterOnCamera enable

Parameters:

Returns: Nothing

Syntax 2

since arma3 1.48

mapCenterOnCamera minimap

Parameters:

Returns: PositionASL of the map center (camera focus object's model centre's position (see getPosWorld)) in render scope

Examples

Example 1

// --- Minimap update
((uiNamespace getVariable "BIS_UAV_DISPLAY") displayCtrl 112410) mapCenterOnCamera true;

See also

ctrlMapAnimAdd · ctrlMapAnimCommit · getPosWorld