Hello,
We have a character which may hold a weapon, and will attack (play animation) with that weapon. This weapon has durability and will break after it hits X amount of objects. (we do not know if the sword will break before we play the animation)
Upon the sword breaking, we need to turn the SwordAttachment
visibility to off, however we want the animation to continue.
Our SwordSwing
Animation keys the SwordAttachment
visibility on, on frame 0. This is playing on track 0.
We play this animation, and at frame 30, we decide that the durability of this weapon is up, and we play an SwordOff
Animation. Which on frame 0 keys SwordAttachment
(and SwordSlot
) visibility to off. This is played on track 1.
It needs to be on a different track because SwordSwing
animation still needs to play and finish.
The result of this, is the SwordAttachment
visibility is on, as you run though all the attachment timelines in an animation, every frame.
How is best to proceed, to turn the attachment off, even though there is an animation which once keyed it on currently playing.
I have simplified the problem, we key SwordSlot
multiple times in the animation
Simplified SwordSwingAnimation
, playing on track 0
Loading Image
Frame 25 is when we would play SwordOff
, on track 1
Loading Image