ctrlMapAnimAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (format)
mNo edit summary
Line 28: Line 28:
[[ctrlMapAnimCommit]] _map;</code> |= Example 1
[[ctrlMapAnimCommit]] _map;</code> |= Example 1


|x2= Centre map on player: <code>_ctrl [[ctrlMapAnimAdd]] [0, 0.05, [[player]]];
|x2= Center map on player: <code>_ctrl [[ctrlMapAnimAdd]] [0, 0.05, [[player]]];
[[ctrlMapAnimCommit]] _ctrl;</code> |= Example 2
[[ctrlMapAnimCommit]] _ctrl;</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 20:07, 20 October 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Adds the next frame to the map animation.
Groups:
Uncategorised

Syntax

Syntax:
map ctrlMapAnimAdd [time, zoom, position]
Parameters:
map: Control
[time, zoom, position]: Array
time: Number
zoom: Number
position: Array or Object - formats: Position2D, Position3D, Object
Return Value:
Nothing

Examples

Example 1:
_map ctrlMapAnimAdd [1, 0.1, getMarkerPos "anim1"]; ctrlMapAnimCommit _map;
Example 2:
Center map on player: _ctrl ctrlMapAnimAdd [0, 0.05, player]; ctrlMapAnimCommit _ctrl;

Additional Information

See also:
mapAnimAddmapAnimClearmapAnimCommitmapAnimDonectrlMapAnimClearctrlMapAnimCommitctrlMapAnimDone

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 17:11, 9 March 2010
besselinksjm
Besides Position2D, both Objects and Position3D work.

Bottom Section