mapAnimAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(76 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97]]
[[Category:Scripting Commands OFP 1.46]]
[[Category:Scripting Commands ArmA]]


back to [[Scripting_Reference#M|COMREF]]
|game1= ofp
|version1= 1.27


<h2 style="color:#000066">'''mapAnimAdd ''frame'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''frame:''' [[Array]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Nothing]]
|game7= arma3
|version7= 0.50


'''Compatibility:'''
|eff= local


Added in version '''1.27'''
|gr1= Map


'''Description:'''
|descr= Add next frame to map animation.


Add next frame to map animation.
|s1= [[mapAnimAdd]] [time, zoom, position]


Format of frame is '''''[time, zoom, position]''''', format of position is [[Position2D]].
|p1= time: [[Number]] - animation duration in seconds


|p2= zoom: [[Number]] - range from 0.01 (max. zoom) to 1 (zoomed out)


'''Example:'''
|p3= position: [[Object]] or [[Array]] format [[Position#Introduction|Position2D]], [[Position#Introduction|Position3D]]


'''mapAnimAdd''' [1, 0.1, [[getMarkerPos]] "anim1"]
|r1= [[Nothing]]
 
|x1= <sqf>
mapAnimAdd [1, 0.1, markerPos "anim1"];
mapAnimCommit;
</sqf>
 
|x2= <sqf>
mapAnimAdd [3, 0.01, player];
mapAnimCommit;
</sqf>
 
|seealso= [[mapAnimClear]] [[mapAnimCommit]] [[mapAnimDone]] [[ctrlMapAnimAdd]] [[ctrlMapAnimClear]] [[ctrlMapAnimCommit]] [[ctrlMapAnimDone]]
}}
 
{{Note
|user= Ceeeb
|timestamp= 20070202052600
|text= In '''OFP v1.96''', the mapAnim series of commands, together with [[forceMap]] can only be used in the intro and mission, as it is not possible to access the map from the outro. ''(not checked, sourced from an old copy of the OFPEC comref)''
}}

Latest revision as of 11:34, 3 September 2024

Hover & click on the images for description

Description

Description:
Add next frame to map animation.
Groups:
Map

Syntax

Syntax:
mapAnimAdd [time, zoom, position]
Parameters:
time: Number - animation duration in seconds
zoom: Number - range from 0.01 (max. zoom) to 1 (zoomed out)
position: Object or Array format Position2D, Position3D
Return Value:
Nothing

Examples

Example 1:
mapAnimAdd [1, 0.1, markerPos "anim1"]; mapAnimCommit;
Example 2:
mapAnimAdd [3, 0.01, player]; mapAnimCommit;

Additional Information

See also:
mapAnimClear mapAnimCommit mapAnimDone ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone

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
Ceeeb - c
Posted on Feb 02, 2007 - 05:26 (UTC)
In OFP v1.96, the mapAnim series of commands, together with forceMap can only be used in the intro and mission, as it is not possible to access the map from the outro. (not checked, sourced from an old copy of the OFPEC comref)