mapCenterOnCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(alt syntax, see also)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Enable/disable continuous centering the map on the camera position. |= Description
| <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>
[[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
____________________________________________________________________________________________
____________________________________________________________________________________________


| control '''mapCenterOnCamera''' enable |= Syntax
| mainmap '''mapCenterOnCamera''' enable |= Syntax


|p1= control: [[Control]] -  |= PARAMETER1  
|p1= mainmap: [[Control]] -  |= PARAMETER1  


|p2= enable: [[Boolean]] -  |= PARAMETER2  
|p2= enable: [[Boolean]] -  |= PARAMETER2  


| [[Nothing]] |= RETURNVALUE  
| [[Nothing]] |= RETURNVALUE  
| s2= '''mapCenterOnCamera''' minimap &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(''available since Arma 3 v1.47'')|= Syntax
| p21= minimap: [[Control]] -  |= PARAMETER1
| r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope |= RETURNVALUE




Line 24: Line 33:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  
Line 44: Line 53:
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Camera Control|mapCenterOnCamera]]
[[Category:Command Group: Camera Control|mapCenterOnCamera]]
[[Category:Render Time Scope Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 20:34, 19 June 2015

Hover & click on the images for description

Description

Description:
<control> mapCenterOnCamera <boolean> syntax enables/disables continuous centering of the main map type control on the camera position. Needs to be executed once.

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).
Groups:
Uncategorised

Syntax

Syntax:
mainmap mapCenterOnCamera enable
Parameters:
mainmap: Control -
enable: Boolean -
Return Value:
Nothing

Alternative Syntax

Syntax:
mapCenterOnCamera minimap        (available since Arma 3 v1.47)
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