Gives the difference between the looptime of the current animation action and the player's animation-time. Useful for knowing when the end of the animation has been reached.

Note: animation-time is the time in game-ticks that the player has spent within the current animation action.

The name may be confusing. Try to think of it as "time from the end of the animation".

Format: AnimTime

Arguments:

Return type: int

Error conditions: none

Example:

trigger1 = AnimTime = 0 ; Triggers when the animation-time is equal to the animation action's looptime, ie. the end of the action has been reached.