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"

Cast to Character failed in Animation Blueprint

I've been trying to get the jump animation working when jump bJumpPressed is true and have been unable to get it to work. After a lot of wasted time, I hooked a "Print String" event to the "Cast Failed" target, and realized that this was the issue.

Would anyone be able to tell me why this cast is failing?alt text

When I run the project, the screen prints "Ugh" and "Hello": alt text

I redid the whole event graph to make sure I hadn't done something wrong, which is why there's no additional logic. But, the cast is still failing.

Product Version: Not Selected
Tags:
more ▼

asked Nov 01 '14 at 10:42 PM in Blueprint Scripting

avatar image

tosslogic
83 7 10 13

avatar image Elea Aug 05 '17 at 02:06 AM

No useful Answer just useless Suggestions -_-

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Ok, so this is odd, but this only happens if I have the blueprint open. If I compile and close the blueprint, and run the project the cast doesn't fail. But, if I run it with the blueprint open it fails. Not sure why this is, but at least I know how to move forward now.

more ▼

answered Nov 02 '14 at 03:03 PM

avatar image

tosslogic
83 7 10 13

avatar image TorQueMoD Feb 11 '17 at 02:28 AM

Thank you. I was having the same issue myself. I'm reporting this as a bug because it shouldn't happen.

avatar image Jarrod84 Mar 20 '17 at 12:31 PM

I thank you as well, I was fighting with this for at least a couple hours, DANG BUGS!!!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I have the same question!!! Finally,I found I open the wrong AnimBP. I actually use another AnimationBP now. Maybe you should check your animation Blueprint name.

more ▼

answered Feb 02 '15 at 03:08 PM

avatar image

Leinv
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I think this is actually by design, if you look closely the name of the pure node is called Try Get Pawn Owner, which means it only tries. If you need functionality it will call through the cast most of the time as shown by the hellos being printed. Im not sure on the technical details behind why but you should be safe to ignore any of the failed casts unless its being generated all the time and without any successful casts.

more ▼

answered Feb 11 '17 at 01:44 PM

avatar image

MonsOlympus
948 37 11 36

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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