Is there a good way to have async tasks running within a sequence?
I want to be able to stagger tasks that may still be running after the sequence is complete.
For example - imagine a behavior where the entity casts a spell 3x. The spell task takes 2s to complete, but we want to introduce a 0.2s stagger between each cast.
[Sequence]
- CastSpell (2 second duration)
Wait 0.2s
- CastSpell (2 second duration)
Wait 0.2s
- CastSpell (2 second duration)
Wait 0.2s
The total duration of the sequence would be 0.6s (if the CastSpell task could be done async).
I have been able to create this with a lot of nested parallel / sequence sub tasks, but ideally it would be nice to be able to do it in 1 sequence.
I want to be able to stagger tasks that may still be running after the sequence is complete.
For example - imagine a behavior where the entity casts a spell 3x. The spell task takes 2s to complete, but we want to introduce a 0.2s stagger between each cast.
[Sequence]
- CastSpell (2 second duration)
Wait 0.2s
- CastSpell (2 second duration)
Wait 0.2s
- CastSpell (2 second duration)
Wait 0.2s
The total duration of the sequence would be 0.6s (if the CastSpell task could be done async).
I have been able to create this with a lot of nested parallel / sequence sub tasks, but ideally it would be nice to be able to do it in 1 sequence.