Get actor or character from animation EventGraph
I'm starting to grasp the main framework of UE, but am a little stuck here.
I am trying to access the actor or character from an animation's event graph so I can use it's velocity, but nothing I try seems to work.
GetOwnerActor and TryGetPawnOwner both fail the IsValid (is that how you use it?) and return a zero vector if I try to get their velocity.
Below is the character hierarchy:
How do I do this? Thanks.
For some reason, when I came home today, the blueprint wouldn't output anything I gave it.
To anyone with the the same or similar problem, make sure you have the Anim Blueprint set correctly in the skeletal mesh component of your character.
answered Mar 24 '14 at 09:48 AM
Inside the Persona editor, Get Owning Actor will always fail because it doesn't have one! That is by design. In the editor, you are expected to adjust the variables directly in the Edit Preview tab (bottom left). In the game it will have an owner, and your variables should be set by interrogating it.
answered Mar 23 '14 at 01:45 PM
My experience is that GetActorOwner does not return the character blueprint reference at any time. Neither the edit mode nor the run-time mode.
I did another way to go around it. Here is the steps:
a. Add a variable called TheActor in my animation blueprint and set its type to be a reference to the character blueprint
b. On the character's event graph, do the following:
Hope it helps you to solve your problem.
Follow this question
Once you sign in you will be able to subscribe for any updates here