is it possible? I am trying to get an enum variable from my player character to drive stuff inside the animnotifystate but im getting stuck with the “world context object”. Not even getting all actors of class into an array and getting a copy seems to work in this scenario.
(meanwhile i was kinda ble to cheat it by storing a reference of that variable on the tick of my NPC character(the one whose animation calls the animnotifystate) but this feels super dirty)
no, i am inside the animnotifystate blueprint
Are you inside an animation blueprint? Can you use Try Get Pawn Owner and cast that to your player character?
Ah ok. In that case you can get your character by getting the Owner of Mesh Comp from any of the events.
that’s my problem. I don’t want to get the owner of the notifier animation. I want to get the player character’s variables(the owner of the mesh comp, the actor doing the animation, and triggering the event is an enemy character.
I usually have no problem casting to my player character or player controller, but in this system, all the ways i usually do it are blocked off.
worked. Thanks!
You should be able to use the Mesh Comp as the World Context Object in those other nodes.
Awesome, converted to an answer for future viewers