Can i drag output pin of Branch node, then connect it with input pin of other node in other blueprint in same actor ?
i’m a supper newbie with UE, and i’m trying to making something with helping of ChatGPT, unlucky for me that this Ai gave to me huge answer wrong and i don’t known what it telling to me was right or wrong. Very hard to me for checking.
And most new thing it trying help me is connect output pin of “Branch” node with other input pin of other blueprint in same actor. Can it working ? And if it could be, please tell me how to do that too.
i’m so tired off to see “I apologize” from it everytime i prove it was wrong, help me please.
Hi Tamquocchi2021,
Yeah it’s not quite there yet with it’s accuracy - I’ve seen it completely make up UClasses as well…
You can’t drag a wire to another function in your blueprint - but you can call those functions from other functions - just drag them from the function list into your blueprint code…
Thanks for reply bro.
It was help me made 2 graph blueprint in same actor, and keep trying to help me connecting pins from those graph so i just wanna sure that way could be happen or that’s only imaginary of ChatGPT
Hey there @Tamquocchi2021! As recourse noted, you can call functions from the other portions of the actor to it’s child actor component or vice versa to get the same effect you’re looking for. However if this is something you’d be doing in a general sense, for example calling to a gun in your hand to shoot, it’d be better to use something like Blueprint Interfaces if you can change weapons at any point. This way you can call a generic “Fire” or “Use” on that weapon/item and it will handle it. This might be overkill for a simple game, but it’s a powerful tool to learn when you can!
Documentation on BPIs:
It’s about next action in logic.
I have graph in one actor like this : “On Component Begin OverLap (box)” node connecting with “Cast to BP_ThirdPersonCharacter” node, then connecting with “Is Valid” node, then connecting with “Branch” node.
ChatGpt helped me made one other graph in same that actor to restart level name’s “Restart”
Now from “True” output pin of “Branch” node in first graph, it tell me connect with one input pin of one node inside “Restart” graph.
It tried many ways but still can not success, so i wonder if we really can do that or not ?
So basically, you’re getting the overlap, casting to the character to make sure it’s that character, then if true, you’re using the restart node to restart the level? What node are you using to restart the level? Restart game? The logic sounds correct, though I’d have to see your nodes to be certain you applied it correctly since restart game targets your game mode and resets the level you’re currently in directly. Also you don’t have to valid check after a cast fails, if the cast fails it executes whatever is behind cast failed instead of an error.
A simple restart level the way you’re doing without calling the game mode would be a bit like this:
Thanks a lot bro. i asked many times that why should i using “Is Valid” then “Branch” after that. It’s looking like more complicate problem Ai gave to me.
I just asked again could i using blueprint in second graph by function instead graph, and it said yes -____
I wouldn’t recommend ChatGPT for learning Blueprints as it’s frequently wrong. It’s better at C++ but only in small self contained systems. If you need resources on specific mechanics feel free to ask us here! I can usually point you in the right direction for complex systems and outright show you for simple implementations.