BIS fnc animType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Added syntax, example, params.)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Function that returns a categorized array using a single string with the animation name. |= Description
 
Description:
Returns type of animation
 
Parameter(s):
_this: STRING - animation name
 
Returns:
ARRAY
*/
 
#define COMPOSE_NAME(ID,NAME)\
if (_includeType && _typeName != "<Unknown>" && !_ignoreIncludeType) then {_typeName = format ["[%1] %2",_type,_typeName];};\
if (_includeCategory) then {\
_animType set [##ID##,[##NAME##,_typeName]];\
} else {\
_animType set [##ID##,_typeName];\
};
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_animType]]; --> |= Syntax
| param call [[BIS_fnc_animType]]; |= Syntax


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


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


|x1= <code></code> |=  
|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> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 22:21, 1 October 2014


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:
Uncategorised

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

Notes

Bottom Section