ctrlMapDir: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Fix) |
||
Line 16: | Line 16: | ||
|x1= <sqf> | |x1= <sqf> | ||
private | private _mapControl = findDisplay 12 displayCtrl 51; // get the map | ||
private _dir = ctrlMapDir _mapControl; // returns 0 as the main map does not autorotate | private _dir = ctrlMapDir _mapControl; // returns 0 as the main map does not autorotate | ||
</sqf> | </sqf> |
Revision as of 12:08, 2 February 2023
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