Can AI decorators call the actor being controlled?, I’m trying to get the status of a bool variable in my unit. That will then determine if my ai can move. But it always fails.
Of course it can, but only in response to events. Every even gives you BT’s “owner” when it’s triggered, and 4.7 introduces alternative events that give you both the controller and the pawn (the “AI” versions). Whichever you decide to use just remember that it’s usually the controller that’s the owner of the tree.
Yeah Finally figured that out last night but couldn’t set question to answered. I have to call the ai controller first before getting the casting to actor to receive variable state.