mapCenterOnCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.02 | |1.02 | ||
|gr1= GUI Control - Map | |gr1= GUI Control - Map | ||
| <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). | <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). | ||
| mainmap '''mapCenterOnCamera''' enable | | mainmap '''mapCenterOnCamera''' enable | ||
|p1= mainmap: [[Control]] | |p1= mainmap: [[Control]] | ||
|p2= enable: [[Boolean]] | |p2= enable: [[Boolean]] | ||
| [[Nothing]] | | [[Nothing]] | ||
| s2= '''mapCenterOnCamera''' minimap {{Since|arma3|1.47|y}} | | s2= '''mapCenterOnCamera''' minimap {{Since|arma3|1.47|y}} | ||
|p21= minimap: [[Control]] |PARAMETER21= | |p21= minimap: [[Control]] |PARAMETER21= | ||
| r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope | | r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope | ||
|x1= <code>{{cc|--- Minimap update}} | |x1= <code>{{cc|--- Minimap update}} | ||
(([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code> | (([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code> | ||
| [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] | | [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] | ||
}} | }} | ||
Revision as of 01:06, 18 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