BIS fnc ORBATAnimate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (page filling)
m (Text replacement - ">\[ +(.*) *\] +(call|spawn)" to ">[$1] $2")
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.00


|1.00|= Game version
|gr1= Strategic
____________________________________________________________________________________________


| Animates an ORBAT viewer.|= Description
|descr= Animates an ORBAT viewer.
____________________________________________________________________________________________


| [target, zoom, duration] spawn [[BIS_fnc_ORBATAnimate]] |= Syntax
|s1= [target, zoom, duration] spawn [[BIS_fnc_ORBATAnimate]]


|p1= target: [[Config]] or [[Array]] - Path to group in CfgORBAT or offset position from structure center in format '''[X, Y]'''.
|p1= target: [[Config]] or [[Array]] - path to group in CfgORBAT or offset position from structure center in format '''[X, Y]'''.
* When empty, view is reset to original level where whole structure is visible|= Parameter 1
* When empty, view is reset to original level where whole structure is visible
|p2= zoom: [[Number]] - Zoom in range from 0 (max. zoom) to 1 (min. zoom)|= Parameter 2
|p2= zoom: [[Number]] - zoom in range from 0 (max. zoom) to 1 (min. zoom)
|p3= duration: [[Number]] - Commit time in seconds|= Parameter 3
|p3= duration: [[Number]] - commit time in seconds


| [[Boolean]] - [[true|True]] when animation is applied|= Return value
|r1= [[Boolean]] - [[true]] when animation is applied
____________________________________________________________________________________________


|x1= <code>[ [[configFile]] >> "CfgORBAT" >> "BIS" >> "B_1_A_1", 0.5, 3 ] [[spawn]] [[BIS_fnc_ORBATAnimate]];</code> |=
|x1= <sqf>[configFile >> "CfgORBAT" >> "BIS" >> "B_1_A_1", 0.5, 3] spawn BIS_fnc_ORBATAnimate;</sqf>
______________


| [[ORBAT Viewer]], [[BIS_fnc_ORBATAddGroupOverlay]], [[BIS_fnc_ORBATConfigPreview]], [[BIS_fnc_ORBATGetGroupParams]], [[BIS_fnc_ORBATOpen]], [[BIS_fnc_ORBATRemoveGroupOverlay]], [[BIS_fnc_ORBATSetGroupFade]], [[BIS_fnc_ORBATSetGroupParams]], [[BIS_fnc_ORBATTooltip]] |= See also
|seealso= [[ORBAT Viewer]] [[BIS_fnc_ORBATAddGroupOverlay]] [[BIS_fnc_ORBATConfigPreview]] [[BIS_fnc_ORBATGetGroupParams]] [[BIS_fnc_ORBATOpen]] [[BIS_fnc_ORBATRemoveGroupOverlay]] [[BIS_fnc_ORBATSetGroupFade]] [[BIS_fnc_ORBATSetGroupParams]] [[BIS_fnc_ORBATTooltip]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Strategic|{{uc:ORBATAnimate}}]]
[[Category:Functions|{{uc:ORBATAnimate}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ORBATAnimate}}]]

Latest revision as of 17:27, 8 November 2023

Hover & click on the images for description

Description

Description:
Animates an ORBAT viewer.
Execution:
call
Groups:
Strategic

Syntax

Syntax:
[target, zoom, duration] spawn BIS_fnc_ORBATAnimate
Parameters:
target: Config or Array - path to group in CfgORBAT or offset position from structure center in format [X, Y].
  • When empty, view is reset to original level where whole structure is visible
zoom: Number - zoom in range from 0 (max. zoom) to 1 (min. zoom)
duration: Number - commit time in seconds
Return Value:
Boolean - true when animation is applied

Examples

Example 1:
[configFile >> "CfgORBAT" >> "BIS" >> "B_1_A_1", 0.5, 3] spawn BIS_fnc_ORBATAnimate;

Additional Information

See also:
ORBAT Viewer BIS_fnc_ORBATAddGroupOverlay BIS_fnc_ORBATConfigPreview BIS_fnc_ORBATGetGroupParams BIS_fnc_ORBATOpen BIS_fnc_ORBATRemoveGroupOverlay BIS_fnc_ORBATSetGroupFade BIS_fnc_ORBATSetGroupParams BIS_fnc_ORBATTooltip

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