Doing 2 tasks in parallel : How to ?

Yzack

New member
Hi,

I can't figure how to do a simple thing :

- I want an agent shooting at player repeatedly, while continuously facing towards the player.

In this screenshot, attacking is replaced by playing a sound.

I want the blue sequence (attack) and red sequence (rotate) playing in parallel (at every tick)

Sadly, if the player continuously move around the agent, the rotate toward task is always in "Running" state (because it can't exactly reach the direction)
So the blue sequence is not re-evaluated. And the agent feel likes rotating but unable to shoot at player at same time

Any way to do this ?
 

Attachments

  • Annotation 2019-01-23 161001.jpg
    Annotation 2019-01-23 161001.jpg
    121.1 KB · Views: 48
Rotate Towards returns success/failure immediately so you'll want to add a Repeater to the top of it so it repeats.
 
You'd rather mean that the blue sequence returns succes/failure immediatly (RotateToward return success only when rotation is done)

But yes, adding a repeater on top of blue sequence does the job !

Many Thanks Justin.
 
Top