Runs a tick-based animation loop for this player for duration ticks, calling action with the current tick index on each tick.
The owning plugin.
The total number of ticks to run.
Called each tick with the current tick index (0-based).