BIS fnc animType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "</dd> </dl>" to "</dd> </dl>")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| tkoh
|game1= tkoh
|1.00
|version1= 1.00


|game2= arma3
|game2= arma3
Line 9: Line 9:
|gr1= Object Manipulation
|gr1= Object Manipulation


| Function that returns a categorized array using a single string with the animation name.
|descr= Function that returns a categorized array using a single string with the animation name.


|s1= param call [[BIS_fnc_animType]]
|s1= param call [[BIS_fnc_animType]]


|p1= [[String]] - Animation name.
|p1= [[String]] - Animation name.


|r1=[[Array]] - Sorted arrays within an array with details about animation.
|r1= [[Array]] - Sorted arrays within an array with details about animation.


|x1= <code>animType = ["AmovPsitMstpSrasWrflDnon"] call BIS_fnc_animType; <br>// Returns [["Action","Move"],["Pose","Sit"],["Movement","Stop"],["Stance","Raised"],["Hand item","Rifle"],["Direction","Not specified"]]</code>
|x1= <code>animType = ["AmovPsitMstpSrasWrflDnon"] [[call]] [[BIS_fnc_animType]];
{{cc|Returns [["Action","Move"],["Pose","Sit"],["Movement","Stop"],["Stance","Raised"],["Hand item","Rifle"],["Direction","Not specified"]]}}</code>
 
|seealso=
}}
}}
[[Category:{{Name|tkoh}}: Functions|{{uc:animType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:animType}}]]


<dl class="command_description">
<dl class="command_description">
Line 31: Line 31:
The categorization is identical to that of the animation viewer, minus the direction array.  
The categorization is identical to that of the animation viewer, minus the direction array.  
<br>So if the animation you are running through this function is found in the following categories:
<br>So if the animation you are running through this function is found in the following categories:
<code><nowiki>
<pre>Action: Move
Action: Move
Pose: Erect
Pose: Erect
Movement: Stop
Movement: Stop
Stance: Raised
Stance: Raised
Weapon: Rifle
Weapon: Rifle
</nowiki>
</pre>
</code>


Then the following array will be returned:
Then the following array will be returned:
<code><nowiki>
<code>[["Action", "Move"], ["Pose", "Erect"], ["Movement", "Stop"], ["Stance", "Raised"], ["Hand item", "Rifle"], ["Direction", "Not specified"]];</code>
[["Action","Move"],["Pose","Erect"],["Movement","Stop"],["Stance","Raised"],["Hand item","Rifle"],["Direction","Not specified"]];
</nowiki>
</code>
</dd>
</dd>


</dl>
</dl>

Revision as of 19:47, 13 June 2021

Hover & click on the images for description

Description

Description:
Function that returns a categorized array using a single string with the animation name.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
param call BIS_fnc_animType
Parameters:
String - Animation name.
Return Value:
Array - Sorted arrays within an array with details about animation.

Examples

Example 1:
animType = ["AmovPsitMstpSrasWrflDnon"] call BIS_fnc_animType; // Returns [["Action","Move"],["Pose","Sit"],["Movement","Stop"],["Stance","Raised"],["Hand item","Rifle"],["Direction","Not specified"]]

Additional Information

See also:
See also needed

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
Posted on October 1, 2014 - 20:26 (UTC)
Tryteyker-
The categorization is identical to that of the animation viewer, minus the direction array.
So if the animation you are running through this function is found in the following categories:
Action: Move
Pose: Erect
Movement: Stop
Stance: Raised
Weapon: Rifle

Then the following array will be returned: [["Action", "Move"], ["Pose", "Erect"], ["Movement", "Stop"], ["Stance", "Raised"], ["Hand item", "Rifle"], ["Direction", "Not specified"]];