Getting a weird NullReferenceException

I’m getting a null reference exception when trying to convert the second enemy to a quest giver.

NullReferenceException: Object reference not set to an instance of an object
Sanctuary.Harry.Combat.AggroGroup.Activate (System.Boolean shouldActivate) (at Assets/Harry/Scripts/Combat/AggroGroup.cs:23)
Sanctuary.Harry.Combat.AggroGroup.Start () (at Assets/Harry/Scripts/Combat/AggroGroup.cs:15)

And now my cursor isn’t changing as if it was a AI conversant (it did before, and now it’s not working for either enemy. I can still click on them and activate the dialogues). At the end of the quest giving, it throws another error as well.

I know something like this happened to me before, but I just don’t remember what I did to fix it.

I’m an idiot, I deleted the old enemy, duplicated the old enemy that had the dialogue on it, but forgot to add the new duplicated enemy to the aggro group in the container.

You misspelled “programmer just like everybody else”. :stuck_out_tongue: Good job getting that sorted.

2 Likes

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

Privacy & Terms