mapCenterOnCamera: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=") |
Lou Montana (talk | contribs) m (Fix bad regex effects) Tag: Undo |
||
Line 6: | Line 6: | ||
|1.02|Game version= | |1.02|Game version= | ||
|gr1 = Camera Control |GROUP1= | |gr1= Camera Control |GROUP1= | ||
|gr2= Render Time Scope |GROUP2= | |gr2= Render Time Scope |GROUP2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | | <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> | ||
[[mapCenterOnCamera]] < | <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= | ||
|p1= mainmap: [[Control]] | |p1= mainmap: [[Control]] |PARAMETER1= | ||
| | |p2= enable: [[Boolean]] |PARAMETER2= | ||
| | | [[Nothing]] |RETURNVALUE= | ||
| s2= '''mapCenterOnCamera''' minimap {{since|arma3|1.47|y}} |SYNTAX2= | |||
| | |p21= minimap: [[Control]] |PARAMETER21= | ||
| r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope |RETURNVALUE2= | |||
|x1= <code> | |x1= <code>{{cc|--- Minimap update}} | ||
(([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code>|EXAMPLE1= | (([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code>|EXAMPLE1= | ||
Line 54: | Line 48: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 01:35, 25 September 2020
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:
- Camera ControlRender Time Scope
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