Download

Defined variable is "none"

I have a variable “mPlayer” that references an instance of my PlayerCharacter. I tried using this variable in my AI’s code, but the runtime refers to it as a “none” variable, despite me defining it as the player character. I have no idea what the problem could be. The notice function and set Health both receive mPlayer as inputs, which is why I assumed this was the cause of these runtime errors.