When I use Get Player Character to get the isFalling node it compiles fine on the animation blueprint. When I test it on the editor however, I get an error that Get Player Character returns none, which on my understanding is null. Therefore, even though I 've followed all the steps to the letter I can’t seem to get the player character when I actually hit play and spawn the player.
Well , you should create a boolean variable IsFalling? and set after event blueprint animation and inside transition puts IsFalling? Boolean instead your image nodes
I haven’t figured it out… I can’t recall now, I think I skipped it altogether. Anyway, from code just make a variable that stores GetPlayerCharacter->GetActorLocation and log it with UE_LOG every tick. In BP just use print string for the same thing. If you confirm that it indeed returns 0, then at least you will know for sure that this was the problem.
Hello @Arty-McLabin do you mind to expand your answer a little bit? Where did you find the Event BluePrint Initialize Animation in the transition graph? I see only an empty graph without any event and I cannot get the event you are referring to from anyother point
I might have a similar issue. I get reports from users that some objects are not animated that should trigger on GetPlayerCharacter->GetActorLocation. I cannot reproduce it, but I suspect that GetPlayerCharacter returns 0. Is the player not always index 0? Is it not valid at certain points in the game? Did you find the issue?
@Arty-McLabin got it correct, and it is much appreciated, but was I confused in what needed to in the Event Graph, and what needed to be in the Transition Graph. Iv’e included two images, one from the Event Graph, and one from the Transition Graph. First you will need to create a new variable, and set it to “Object”, and then “Character”, and then “Reference.” The variable should be blue. And set up the nodes as the two images depict.alt text
sorry for not replying back then, i haven’t noticed your question.
you press the right button on the empty graph, and type in “event blueprint initialize animation”. after writing a few letters it will already show u the search result and you click on it.