Turrent Behavior

Kenlem

New member
Hi All,

I'm working on a simple turret that scans left and right until it sees the player (90 FOV). If it can see the player, it rotates towards the player's position. Once the player is within 10 degrees of the FOV, I have the turrent fire with a 2 second cool off.

This works well except the turret waits for the cool down period to resume either scanning or updating the rotation towards the the player.

I'd like the sequences to rotate towards the player to happen at the same time as the sequence to determine if the turret should fire. I've experimented with parallel tasks but that's not helping. Maybe I don't understand parallel tasks properly? Any suggestions? Thanks.
 

Attachments

  • Screen Shot 2021-12-09 at 1.39.57 PM.png
    Screen Shot 2021-12-09 at 1.39.57 PM.png
    461.2 KB · Views: 20
Last edited:
The parallel task sounds appropriate for this situation. Did you place the parallel in the location of the top selector?
 
Top