getUnitMovesInfo: Difference between revisions
Jump to navigation
Jump to search
m (Example) |
mNo edit summary |
||
Line 15: | Line 15: | ||
|r1= [[Array]] in format: | |r1= [[Array]] in format: | ||
* 0 - [[ | * 0 - [[Number]] - move progress in range 0-1 | ||
* 1 - [[ | * 1 - [[Number]] - move elapsed time ({{hl|move progress * move duration}}) | ||
* 2 - [[ | * 2 - [[Number]] - move duration | ||
* 3 - [[ | * 3 - [[Number]] - move blend factor | ||
* 4 - [[Vector3D]] - rtm step (how many meters the unit moves after finishing the move) | * 4 - [[Vector3D]] - rtm step (how many meters the unit moves after finishing the move) | ||
* 5 - [[ | * 5 - [[Number]] - gesture progress in range 0-1 | ||
* 6 - [[ | * 6 - [[Number]] - gesture elapsed time ({{hl|gesture progress * gesture duration}}) | ||
* 7 - [[ | * 7 - [[Number]] - gesture duration | ||
* 8 - [[ | * 8 - [[Number]] - gesture blend factor | ||
|s2= unit [[getUnitMovesInfo]] index | |s2= unit [[getUnitMovesInfo]] index |
Revision as of 12:47, 26 February 2024
Description
- Description:
- Returns various information about the unit moves (primary animation) and gestures (masked animation)
- Groups:
- Animations
Syntax
- Syntax:
- getUnitMovesInfo unit
- Parameters:
- unit: Object
- Return Value:
- Array in format:
- 0 - Number - move progress in range 0-1
- 1 - Number - move elapsed time (move progress * move duration)
- 2 - Number - move duration
- 3 - Number - move blend factor
- 4 - Vector3D - rtm step (how many meters the unit moves after finishing the move)
- 5 - Number - gesture progress in range 0-1
- 6 - Number - gesture elapsed time (gesture progress * gesture duration)
- 7 - Number - gesture duration
- 8 - Number - gesture blend factor
Alternative Syntax
- Syntax:
- unit getUnitMovesInfo index
- Parameters:
- unit: Object
- index: Number - index of property from the main syntax
- Return Value:
- Anything - Value of the requested property, or Nothing if index is invalid. See the main syntax.
Examples
- Example 1:
Additional Information
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