Behaviour Cast to Fail

That is because the owner of “Perform condition check” does not derive from “follower_AI_CON”

i am new to unreal engine 4 ryan thank you for your answer can you help me solving the above solution, i followed exact steps mention in documentation, i request unreal engine 4 members to correct the documentation pleases of AI and Behaviour tree

Can you provide a link to the tutorial/doc?
Who is calling the “perform condition check” function ?

https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/6/index.html
https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/13/index.html

I am going to have to go over that tutorial series to see how everything is supposed to work.

Have you tried setting a brake point on the cast node and then hovering your mouse of the “Owner” actor node to see what actor is the owner?

HTH

I removed email from your title. Don’t post email publicly on open website, it might get spidered and get lot of spam.

yes it is not working.

I have not been able to go over those tutorials as I have been a bit busy lately.

I just noticed something with one of my own blueprints: What message do you see when you hover the mouse over the “Note” blue bar on the cast node ?

Do you still have the problem?

I have the exact same problem as the OP. I followed the exact tutorial & am getting the same error trying to cast to follow_ai_con.

When I hover over the ‘note’ blue bar, it says "the execution path doesn’t end with a return node’.

That means one of the execution nodes does not link to the “return” node.
In other words: Node flow is undefined/broken.
The “Cast Failed” HAS to be linked to the return node.

@OP You solve this?

HTH

I realize this. That still renders the whole thing useless though because I want it to cast for it to work…i think

You can do multiple return nodes, so you can also return one for a failed cast. Seems reasonable to me.

Not sure if this will fix it, but hey, it’s worth a try.

What I do is create a temporary variable for the return type for functions like these.
That way you can have one exit point for simplicity, You just need to set the temp var before “returning”.