Pawns have both Event Possessed and Event Unpossessed. They have returns, New Controller and Old Controller respectively. They get called when you’d expect, but the returns always return none.
Is there a reason for this? Am I missing something obvious? I was experimenting with them today, stepping through blueprints and was confused as to why they have the returns that don’t do anything.
I’m going to poke around in the source tomorrow, but any insight would be appreciated.
It’s weird that I’ve known those returns have always existed but never used them, so I had to go and check. And I didn’t get the same results as you. I got True when I checked if they were valid, I got the display name of the returned controllers (‘PlayerController’ and ‘AIController’), so I’m not sure why you aren’t getting anything.
I discovered that these events were returning the correct values, and I was looking at delegate events in another actor that were bound to these events. I simply forgot to hook them up completely. Solved.