Zombie Runner - Enemy wont attack after being shot and wont take damage

Hi guys, just finished lecture 174 broadcast message and now my enemy wont attack after being shot at and also won take damage, it chases after I get in the target range and reduces my damage I have copied and pasted the code from the git hub commits so it should be all good.

I have also written a debug statement which is being printed to the console.

Hi Simon,

I don’t know where you added the Debug.Log but have you already tried to figure out which code blocks do not get executed even though they are expected to get executed?

If the code for ‘taking damage’ does not get executed, the enemy won’t die.

Privacy & Terms