mapCenterOnCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>") |
||
Line 35: | Line 35: | ||
|x1= <code>// --- Minimap update | |x1= <code>// --- Minimap update | ||
((uiNamespace | ((uiNamespace getVariable "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code> | ||
|seealso= [[ctrlMapAnimAdd]] [[ctrlMapAnimCommit]] [[getPosWorld]] | |seealso= [[ctrlMapAnimAdd]] [[ctrlMapAnimCommit]] [[getPosWorld]] | ||
}} | }} |
Revision as of 11:32, 12 May 2022
Description
- Description:
- ctrl mapCenterOnCamera enable syntax enables/disables continuous centering of the main map type control on the camera position. Needs to be executed once.
mapCenterOnCamera ctrl syntax centers mini map type control on camera. The command returns world position of the camera. Needs to be executed each frame (preferably inside onDraw EH). - Groups:
- GUI Control - Map
Syntax
- Syntax:
- mainmap mapCenterOnCamera enable
- Parameters:
- mainmap: Control
- enable: Boolean
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- mapCenterOnCamera minimap
- Parameters:
- minimap: Control
- Return Value:
- Array in format 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;
Additional Information
- See also:
- ctrlMapAnimAdd ctrlMapAnimCommit getPosWorld
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