What I'm trying to achieve is as follows:
- Enemy has LOS on player
- Enemy waits 2 seconds then switches to "Shooting" state
- Enemy eneters "Shooting" state and fires at player
- Enemy wait another 2 seconds and goes back to "Hiding" state
This would then loop if the enemy had LOS on the player. Hide 2 seconds, Fire for 2 seconds.
Problem is that the enemy starts Hiding, enters Firing state and fires once, and then stays in that state and doesn't fire.
I feel like this is a super basic thing that I'm missing. I'm familiar with doing "Else" conditions but that doesn't seems right in this case. Appreciate any help!