ctrlMapAnimAdd: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (description/example) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Adds the next frame to the map animation | | Adds the next frame to the map animation. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| map '''ctrlMapAnimAdd''' | | map '''ctrlMapAnimAdd''' [time, zoom, position] |= Syntax | ||
|p1= map: [[Control]] |= Parameter 1 | |p1= map: [[Control]] |= Parameter 1 | ||
|p2= [time, zoom, position]: [[Array]] |= Parameter 2 | |||
|p2= | |p3= time: [[Number]] |= Parameter 3 | ||
|p4= zoom: [[Number]] |= Parameter 4 | |||
|p5= position: [[Array]] or [[Object]] - formats: [[Position2D]], [[Position3D]], [[Object]] |= Parameter 5 | |||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_map [[ctrlMapAnimAdd]] [1, 0.1, [[getMarkerPos]] "anim1"]; | ||
[[ctrlMapAnimCommit]] _map;</code> |= Example 1 | |||
|x2= Centre map on player: <code>_ctrl [[ctrlMapAnimAdd]] [0, 0.05, [[player]]]; | |||
[[ctrlMapAnimCommit]] _ctrl;</code> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 34: | Line 40: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt class="note">'''[[User:Besselinksjm|besselinksjm]]''' | <dt class="note">'''[[User:Besselinksjm|besselinksjm]]''' | ||
<dd class="note"> | <dd class="note">Besides [[Position2D]], both [[Object]]s and [[Position3D]] work. | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 00:24, 16 June 2014
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:
- Centre map on player:
_ctrl ctrlMapAnimAdd [0, 0.05, player]; ctrlMapAnimCommit _ctrl;
Additional Information
- See also:
- mapAnimAddmapAnimClearmapAnimCommitmapAnimDonectrlMapAnimClearctrlMapAnimCommit, 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
Notes
- besselinksjm
- Besides Position2D, both Objects and Position3D work.