Not chasing errors

Lecture Ref: 5_IN_RPG
Im having a problem where i am getting this error after making changes in this lecture.
NullReferenceException: Object reference not set to an instance of an object

RPG.Control.AIController.Update () (at Assets/Project/Script/Control/AIController.cs:22)
Basically, the enemy is not chasing me and everytime i get close to it its giving me that error message.

someone had the same question and the only answer they got was from another student who said they had to unroot it from the character and make it its own prefab b y deleting it and then making a new enemy prefab and it worked but im wondering if i have to do this.

this is a link to my project files:
https://jayyron.itch.io/rpg-course-errors
Password is: RPG

In case missed on discord.

Enemy is missing the action scheduler script and the character root is also missing it.
Remember to apply to the root prefab else the variants wont have them :slight_smile:

Just remember if you add it to your character you will need to remove a second one from your prefab variantes (enemy and player)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.