BIS fnc mapAnimAdd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ") |
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Map and Markers |GROUP1=") |
||
Line 4: | Line 4: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1 = Map and Markers |GROUP1= | |||
|arg= local |Multiplayer Arguments= | |arg= local |Multiplayer Arguments= |
Revision as of 10:11, 10 October 2020
Description
- Description:
- Similar to mapAnimAdd, yet it provides additional parameters to allow for a non-linear zoom and various position interpolation modes.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [duration, toZoom, toPosition, interpModeZoom, interpModePosition, fromZoom, fromPosition] call BIS_fnc_mapAnimAdd
- Parameters:
- duration: Number - (Optional, default 1.0) the animation duration in seconds
- toZoom: Number - (Optional, default 0.05) the zoom at the end of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)
- toPosition: Position - (Optional, default [0, 0, 0]) the position vector
- interpModeZoom: Number - (Optional, default 12) the interpolation mode for the zoom
- interpModePosition: Number - (Optional, default 12) the interpolation mode for the position
- fromZoom: Number - (Optional, default current map zoom) the zoom at the begnning of the animation, ranging from 0.01 (max. zoom) to 1 (zoomed out)
- fromPosition: Position - (Optional, default current map position) the position vector to start the animation from
- Return Value:
- Nothing
Examples
- Example 1:
openMap true; // The function won't work if the map is not open [2.0, 0.05, getPos player] call BIS_fnc_mapAnimAdd;
Additional Information
- See also:
- BIS_fnc_mapAnimClearBIS_fnc_mapAnimDonemapAnimAddmapAnimClearmapAnimCommitmapAnimDonectrlMapAnimAddctrlMapAnimClearctrlMapAnimCommitctrlMapAnimDone
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