mapAnimAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(Add parameters description)
Line 1: Line 1:
[[Category:Scripting Commands|MAPANIMADD]]
[[Category:Scripting Commands OFP 1.96|MAPANIMADD]]
[[Category:Scripting Commands OFP 1.46|MAPANIMADD]]
[[Category:Scripting Commands ArmA|MAPANIMADD]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 19: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''mapAnimAdd''' [time, zoom, position] |SYNTAX=
| [[mapAnimAdd]] [time, zoom, position] |SYNTAX=


|p1= [time, zoom, position]: [[Array]] |PARAMETER1=
|p1= [time, zoom, position]: [[Array]] |PARAMETER1=
|p2= time: [[Number]] |PARAMETER3=
 
|p3= zoom: [[Number]] |PARAMETER3=
|p2= time: [[Number]] - animation duration in seconds |PARAMETER2=
|p4= position: [[Array]] or [[Object]] - formats: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER4=
 
|p3= zoom: [[Number]] - range from 0.01 (max. zoom) to 1 (zoomed out) |PARAMETER3=
 
|p4= position: [[Position2D]], [[Position3D]] or [[Object]] |PARAMETER4=


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
Line 37: Line 35:


| [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimAdd]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] |SEEALSO=
| [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimAdd]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] |SEEALSO=
}}
}}


Line 44: Line 41:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 05:26, 2 February 2007</dd>
<dd class="notedate">Posted on 05:26, 2 February 2007</dd>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<dt class="note">[[User:Ceeeb|Ceeeb]]
<dd class="note">
<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)''
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)''
Line 52: Line 49:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: GUI Control|{{uc:{{PAGENAME}}}}]]

Revision as of 01:18, 14 April 2020

Hover & click on the images for description

Description

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

Syntax

Syntax:
mapAnimAdd [time, zoom, position]
Parameters:
[time, zoom, position]: Array
time: Number - animation duration in seconds
zoom: Number - range from 0.01 (max. zoom) to 1 (zoomed out)
position: Position2D, Position3D or Object
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:
mapAnimClearmapAnimCommitmapAnimDonectrlMapAnimAddctrlMapAnimClearctrlMapAnimCommitctrlMapAnimDone

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

Posted on 05:26, 2 February 2007
Ceeeb
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)

Bottom Section