mapAnimAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| ofp |Game name=
|game1= ofp
|version1= 1.27


|1.27|Game version=
|game2= ofpe
|version2= 1.00


|arg= local |Multiplayer Arguments=
|game3= arma1
|version3= 1.00


|eff= local |Multiplayer Effects=
|game4= arma2
|version4= 1.00


|gr1= Map |GROUP1=
|game5= arma2oa
|version5= 1.50


| Add next frame to map animation. |DESCRIPTION=
|game6= tkoh
|version6= 1.00


| [[mapAnimAdd]] [time, zoom, position] |SYNTAX=
|game7= arma3
|version7= 0.50


|p1= [time, zoom, position]: [[Array]] |PARAMETER1=
|eff= local


|p2= time: [[Number]] - animation duration in seconds |PARAMETER2=
|gr1= Map


|p3= zoom: [[Number]] - range from 0.01 (max. zoom) to 1 (zoomed out) |PARAMETER3=
|descr= Add next frame to map animation.


|p4= position: [[Position2D]], [[Position3D]] or [[Object]] |PARAMETER4=
|s1= [[mapAnimAdd]] [time, zoom, position]


| [[Nothing]] |RETURNVALUE=
|p1= time: [[Number]] - animation duration in seconds
 
|x1= <code>[[mapAnimAdd]] [1, 0.1, [[markerPos]] "anim1"];
[[mapAnimCommit]];</code> |EXAMPLE1=


|x2= <code>[[mapAnimAdd]] [3, 0.01, [[player]]];
|p2= zoom: [[Number]] - range from 0.01 (max. zoom) to 1 (zoomed out)
[[mapAnimCommit]];</code> |EXAMPLE2=


| [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimAdd]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] |SEEALSO=
|p3= position: [[Object]] or [[Array]] format [[Position#Introduction|Position2D]], [[Position#Introduction|Position3D]]
}}
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>mapAnimAdd [1, 0.1, markerPos "anim1"];
<dl class="command_description">
mapAnimCommit;</sqf>
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 05:26, 2 February 2007</dd>
<dt class="note">[[User:Ceeeb|Ceeeb]]
<dd class="note">
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)''


<!-- Note Section END -->
|x2= <sqf>mapAnimAdd [3, 0.01, player];
</dl>
mapAnimCommit;</sqf>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[mapAnimClear]] [[mapAnimCommit]] [[mapAnimDone]] [[ctrlMapAnimAdd]] [[ctrlMapAnimClear]] [[ctrlMapAnimCommit]] [[ctrlMapAnimDone]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
{{Note
{{GameCategory|arma1|Scripting Commands}}
|user= Ceeeb
{{GameCategory|arma2|Scripting Commands}}
|timestamp= 20070202052600
{{GameCategory|arma3|Scripting Commands}}
|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)''
{{GameCategory|tkoh|Scripting Commands}}
}}

Latest revision as of 11:24, 13 May 2022

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)