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.
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
Last edited: