x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Get actor or character from animation EventGraph

Hello!

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.

alt text

Below is the character hierarchy:

alt text

How do I do this? Thanks.

Product Version: Not Selected
Tags:
blueprint.png (105.9 kB)
blueprint2.png (12.7 kB)
more ▼

asked Mar 23 '14 at 12:43 PM in Blueprint Scripting

avatar image

Acren
460 46 50 70

avatar image OFEKA May 22 '14 at 05:45 PM

You can use Get Owning Actor in any BluePrint event graph, inside Persona EventGraph use GetPlayerCharacter, then cast to your class, that works for me!

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

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.

alt text

animblueprint.png (35.3 kB)
more ▼

answered Mar 24 '14 at 09:48 AM

avatar image

Acren
460 46 50 70

avatar image Maslobojik May 31 '15 at 06:08 PM

How to get self actor of current animation processing?

(comments are locked)
10|2000 characters needed characters left

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.

more ▼

answered Mar 23 '14 at 01:45 PM

avatar image

JamesG STAFF
1.3k 8 6 32

(comments are locked)
10|2000 characters needed characters left

alt textMy 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:

  • Drag in the mesh node

  • From the mesh node, Get Animation Instance

  • Cast the animation instance to be the reference to your animation blueprint

  • Set TheActor of the cast animation instance to be self

Hope it helps you to solve your problem.

image.jpg (54.7 kB)
more ▼

answered Apr 15 '15 at 12:21 AM

avatar image

George Li
186 3 12 21

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question