getUnitMovesInfo: Difference between revisions
Lou Montana (talk | contribs) m (Add params example) |
No edit summary |
||
| Line 9: | Line 9: | ||
|descr= Returns various information about the unit moves (primary animation) and gestures (masked animation) | |descr= Returns various information about the unit moves (primary animation) and gestures (masked animation) | ||
{{Feature|informative| Up until {{GVI|arma3|2.20}} this command only worked for a man unit, and other units such as animals couldn't use this command. As of {{GVI|arma3|2.22}} animals are supported as well. }} | |||
|s1= [[getUnitMovesInfo]] unit | |s1= [[getUnitMovesInfo]] unit | ||
Latest revision as of 12:06, 31 March 2026
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 format:
- 0 - moveProgress: Number - move progress in range 0-1
- 1 - moveTime: Number - move elapsed time (move progress * move duration)
- 2 - moveDuration: Number - move duration in seconds
- 3 - moveFactor: Number - move blend factor
- 4 - rtmStep: Vector3D - rtm step (how many meters the unit will move after finishing the animation)
- 5 - gestureProgress: Number - gesture progress in range 0-1
- 6 - gestureTime: Number - gesture elapsed time (gesture progress * gesture duration)
- 7 - gestureDuration: Number - gesture duration in seconds
- 8 - gestureFactor: 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:
- Example 2:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note