{"name":"ctrlMapDir","title":"ctrlMapDir","type":"command","url":"https://community.bistudio.com/wiki/ctrlMapDir","revid":347213,"updated":"2023-09-05T16:49:02Z","groups":["GUI Control - Map"],"status":"ok","games":{"arma3":"2.14"},"since":"arma3 2.14","arma3_since":"2.14","description":"Returns the current orientation angle of the map control in degrees.","syntaxes":[{"syntax":"ctrlMapDir ctrl","params":[{"name":"ctrl","type":"Control","type_expr":"Control"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"ctrl"}}],"examples":[{"code":["private _mapControl = findDisplay 12 displayCtrl 51; // get the map\nprivate _dir = ctrlMapDir _mapControl; // returns 0 as the main map does not autorotate"]}],"see_also":["ctrlMapScale"]}