Arma 3 Scripting

Command in GUI Control - Map

ctrlMapDir

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

Description

Returns the current orientation angle of the map control in degrees.

Syntax

ctrlMapDir ctrl

Parameters:

Returns: Number

Examples

Example 1

private _mapControl = findDisplay 12 displayCtrl 51; // get the map
private _dir = ctrlMapDir _mapControl; // returns 0 as the main map does not autorotate

See also

ctrlMapScale