mapCenterOnCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=")
m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=")
Line 32: Line 32:




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





Revision as of 20:14, 24 September 2020

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:
Camera ControlRender Time Scope

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:
(.*)

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