getUnitMovesInfo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "↵|version1= 2.18" to " |version1= 2.18 |branch= dev") Tag: Reverted |
Lou Montana (talk | contribs) m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ") Tag: Manual revert |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|arg= global | |arg= global |
Latest revision as of 16:08, 8 October 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 - moveProgress: Number - move progress in range 0-1
- 1 - moveTime: Number - move elapsed time (move progress * move duration)
- 2 - moveDuration: Number - move duration
- 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
- 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:
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