mapCenterOnCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{since" to "{{Since") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= GUI Control - Map |GROUP1= | |gr1= GUI Control - Map |GROUP1= | ||
| <tt>ctrl [[mapCenterOnCamera]] enable</tt> syntax enables/disables continuous centering of the main map type control on the camera position. Needs to be executed once.<br> | | <tt>ctrl [[mapCenterOnCamera]] enable</tt> syntax enables/disables continuous centering of the main map type control on the camera position. Needs to be executed once.<br> | ||
<tt>[[mapCenterOnCamera]] ctrl</tt> 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).|DESCRIPTION= | <tt>[[mapCenterOnCamera]] ctrl</tt> 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).|DESCRIPTION= | ||
| mainmap '''mapCenterOnCamera''' enable |SYNTAX= | | mainmap '''mapCenterOnCamera''' enable |SYNTAX= | ||
Line 30: | Line 27: | ||
(([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code>|EXAMPLE1= | (([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code>|EXAMPLE1= | ||
| [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] |SEEALSO= | | [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] |SEEALSO= |
Revision as of 01:48, 17 January 2021
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 Template:Since
- Parameters:
- minimap: Control
- Return Value:
- Array - PositionWorld of the map center (camera focus object) in render scope
Examples
- Example 1:
// --- Minimap update ((uiNamespace getVariable "BIS_UAV_DISPLAY") displayCtrl 112410) mapCenterOnCamera true;
Additional Information
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