AiController.cs gives me error in else operator, I can't even move my character

Go to line 20 in the AIController and see what you find there. Something in there is null that should not be.

1 Like

Looks like Line 26 as well. My first bet is that it’s the player, not properly initialized… I’m going to postulate that the real issue is in the Awake() or Start() method where the player is found with FindWithTag…

If you’re still stuck on this, paste in the text of the AIController script and we’ll have a look.

1 Like

Oh, yeah. I just assumed they’re both the same error. That’ll teach me…

Privacy & Terms