BIS fnc animType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| tkoh |Game name=
|game2= arma3
|version2= 0.50


|1.00|Game version=
|gr1= Object Manipulation
____________________________________________________________________________________________


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


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


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


| [[Array]] - Sorted arrays within an array with details about animation. |RETURNVALUE=
|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= <sqf>animType = ["AmovPsitMstpSrasWrflDnon"] call BIS_fnc_animType;
____________________________________________________________________________________________
// Returns [["Action","Move"],["Pose","Sit"],["Movement","Stop"],["Stance","Raised"],["Hand item","Rifle"],["Direction","Not specified"]]</sqf>
 
| |SEEALSO=


|seealso=
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:animType}}]]
[[Category:Functions|{{uc:animType}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:animType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:animType}}]]


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2014-10-01 - 20:26 (UTC)</dd>
<dd class="notedate">Posted on October 1, 2014 - 20:26 (UTC)</dd>
<dt class="note">[[User:Tryteyker-|Tryteyker-]]</dt>
<dt class="note">[[User:Tryteyker-|Tryteyker-]]</dt>
<dd class="note">
<dd class="note">
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>
<pre>Action: Move
<nowiki>
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>
<sqf>[["Action", "Move"], ["Pose", "Erect"], ["Movement", "Stop"], ["Stance", "Raised"], ["Hand item", "Rifle"], ["Direction", "Not specified"]];</sqf>
<nowiki>
[["Action","Move"],["Pose","Erect"],["Movement","Stop"],["Stance","Raised"],["Hand item","Rifle"],["Direction","Not specified"]];
</nowiki>
</code>
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 16:49, 8 November 2023

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 2014-10-01 - 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"]];