What’s strange is that the game is working exactly as intended, and I only get the error when I close the play window after the enemy has despawned. I thought maybe the enemy death function was being called multiple times, but I put a print string after it and it’s only being called once. I put a print string after “is not valid” and it never gets called.
i’d say its ‘self’ that is invalid which makes sense on closing PIE, why its being called is another matter. (check if the k2node fires?) you can try validate self just to remove the error and i dont think its anything to worry about
You using Mass AI to control teh pawn? If so mass isn’t a traditional ai controller you can use unpossess on. Would probably need to get the mass agent comp and call disable or something on it. Haven’t really used mass much, so not sure of the specifics on the posession life cycle there.
Or if it’s some hybrid controller setup (or your player is controlling a child of the class), try using a generic Get Controller node instead of Get AI Controller.
so your GetAIController is returning NONE, you might wanna check if your pawn / character actor is actually possessed by an AI Controller also you need Auto Possess AI to be set to Placed in World or Spawned, you can find them both in **Class Defaults.
**
hopes that works with you.