mapCenterOnCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=")
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=
 
 


|gr1= Camera Control |GROUP1=
|gr2= Render Time Scope |GROUP2=
|gr2= Render Time Scope |GROUP2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <control> [[mapCenterOnCamera]] <boolean> syntax enables/disables continuous centering of the main map type control on the camera position. Needs to be executed once.<br><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>
[[mapCenterOnCamera]] <control> 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=


|p1= mainmap: [[Control]] |PARAMETER1=  
|p1= mainmap: [[Control]] |PARAMETER1=  
 
|p2= enable: [[Boolean]] -  |PARAMETER2=
 
| [[Nothing]] |RETURNVALUE=
 


| s2= '''mapCenterOnCamera''' minimap &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(''available since Arma 3 v1.47'')|SYNTAX2=
|p2= enable: [[Boolean]] |PARAMETER2=  


|p21= minimap: [[Control]] |PARAMETER1=  
| [[Nothing]] |RETURNVALUE=


| s2= '''mapCenterOnCamera''' minimap {{since|arma3|1.47|y}} |SYNTAX2=


|r2=(.*)|RETURNVALUE2=  
|p21= minimap: [[Control]] |PARAMETER21=


| r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope |RETURNVALUE2=


|x1= <code>//--- Minimap update
|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 2|{{uc:{{PAGENAME}}}}]]
[[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}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 01:35, 25 September 2020

Hover & click on the images for description

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

See also:
ctrlMapAnimAddctrlMapAnimCommitgetPosWorld

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

Notes

Bottom Section