Enemy AI does not trigger event...
I am making a horror game and I have a enemy that supposed to make a sound when triggered and also cuts to a new scene (Game Over) but when the enemy gets to the player, it does not trigger anything. To trigger the sound and scene movement, you have to walk into the enemy. Can anyone help. For my enemy, I use Sphere Collider (triggers scene movement), a Running animation, Nav Mesh Agent (to navigate around trees), Mesh Renderer, Audio Source (for giant footstep noises), Enemy Sound (script), Move Scene Trigger 2 (script), Enemy Move (script). I work with Unity 5.1.2 Personal Edition (64bit) (Windows) and use Tyrant Zombie as my enemy model. My scripts are all Javascript.
Thanks so much! :)
-James
Your answer
Follow this Question
Related Questions
Horror game project. 0 Answers
Enemy animation gets weird when going to set position 0 Answers
Enemy AI's body will rotate left or right if waypoint reach and move to another waypoint 0 Answers
Unity2D Need Help in Multiple Enemies Shooting Script 0 Answers
Enemy sticking to player on death. 2 Answers