mapCenterOnCamera: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (alt syntax, see also) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
| mainmap '''mapCenterOnCamera''' enable |= Syntax | | mainmap '''mapCenterOnCamera''' enable |= Syntax | ||
|p1= mainmap: [[Control]] - |= | |p1= mainmap: [[Control]] - |PARAMETER1= | ||
|p2= enable: [[Boolean]] - |= | |p2= enable: [[Boolean]] - |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
| s2= '''mapCenterOnCamera''' minimap (''available since Arma 3 v1.47'')|= Syntax | | s2= '''mapCenterOnCamera''' minimap (''available since Arma 3 v1.47'')|= Syntax | ||
| p21= minimap: [[Control]] - |= | | p21= minimap: [[Control]] - |PARAMETER1= | ||
| r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope |= | | r2= [[Array]] - [[PositionWorld]] of the map center (camera focus object) in render scope |RETURNVALUE= | ||
|x1= <code>//--- Minimap update | |x1= <code>//--- Minimap update | ||
(([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code>|= | (([[uiNamespace]] [[getVariable]] "BIS_UAV_DISPLAY") [[displayCtrl]] 112410) [[mapCenterOnCamera]] [[true]];</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] |= | | [[ctrlMapAnimAdd]], [[ctrlMapAnimCommit]], [[getPosWorld]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:35, 7 April 2019
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
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
Categories:
- Scripting Commands
- Introduced with Arma 2 version 1.02
- Arma 2: New Scripting Commands
- Arma 2: Scripting Commands
- Command Group: Uncategorised
- ArmA 2: New Scripting Commands List
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Camera Control
- Render Time Scope Scripting Commands