ctrlMapDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14")
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.14
|version1= 2.14
|branch= dev


|gr1= GUI Control - Map
|gr1= GUI Control - Map
Line 15: Line 14:
|r1= [[Number]]
|r1= [[Number]]


|x1= <sqf>_control = (findDisplay 12) displayCtrl 51; //Arma 3
|x1= <sqf>
_dir = ctrlMapDir _control; //returns 0 as main map does not autorotate</sqf>
private _mapControl = findDisplay 12 displayCtrl 51; // get the map
private _dir = ctrlMapDir _mapControl; // returns 0 as the main map does not autorotate
</sqf>


|seealso= [[ctrlMapScale]]
|seealso= [[ctrlMapScale]]
}}
}}

Latest revision as of 17:49, 5 September 2023

Hover & click on the images for description

Description

Description:
Returns the current orientation angle of the map control in degrees.
Groups:
GUI Control - Map

Syntax

Syntax:
ctrlMapDir ctrl
Parameters:
ctrl: Control
Return Value:
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

Additional Information

See also:
ctrlMapScale

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note