mapCenterOnCamera

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.02
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.02

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).

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

Multiplayer:
-
See also:
ctrlMapAnimAddctrlMapAnimCommitgetPosWorld

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section