mapCenterOnCamera: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 18: Line 18:
<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
|s1=  mainmap '''mapCenterOnCamera''' enable


|p1= mainmap: [[Control]]
|p1= mainmap: [[Control]]

Revision as of 00:12, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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

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