Thanks djaydino, I’ll try changing the repeat interval.
Currently when I fire I can already see the yellow debug ray going through the enemy capsule, so I assumed that it’s not getting caught on the player and is correctly going towards the enemy.
I haven’t tried any breakpoints because it does correctly cycle through each state, but it has a tendency to get back into the idle state and is unshootable.
I can’t see why the idle state would make the enemy invulnerable and seem to think that raycasts are only hitting the enemy when he’s at a certain rotation towards the player perhaps?
The enemy would become vulnerable again when he sees me and starts moving again, but again I’m not sure if it’s the state he’s in or his rotation.