Representing Damage Alongside Timeline

Hiya, I want to use timeline to define my enemy’s moves – e.g. to move towards the player, lunge at the player, attack the player, etc. It’s great having a sequencer to choreograph the myriad events, fx, etc. That being said I also need to play some sort of damage animation when the player attacks the enemy. I want this damage animation to blend additively with whatever is going on in the timeline. Is there some way to accomplish this?

I solved my problem by adapting the code sample here: Writing a script to play an additive animation when a character is controlled by timeline.

Now there’s a component which is enabled when the enemy is damaged that mixes in the additive damage clip and drives its playback.

1 Like