Hey so I started coding using blueprints, but it seams some nodes are missing, or they have weird names and I cannot find them. They should exist though, cause they are the most basic and esential functions for any script.
The nodes I need:
A node that takes in an Exec and a boolean and outputs 2 different Execs depending on the boolean value.
A node that can take any variable and write its value to memory as a new global variable.
Its generally called an If in programming in UE4 itâs also called a branch (as well as if) in blueprints, you can get it by typing âbranchâ, âifâ or just by holding down B and clicking.
Oh, I see.
Thanks! This one is better.
I was converting bool to int and using âswitch on intâ but this one is better, since I donât have to convert the type of the variable.
The other one (the global variable) I cannot find any way to do at all.
What I want is a variable that I can Get and Set from any blueprint in the entire game without referencing anything. Just a value that is held in memory from when it is first set and then is flushed from memory when the app is closed.
I do have them in game instance but I get en error when I try to set them in a different blueprint.
It says âCannot place variable [âŚ] in external scope [âŚ]â.
Why does that happen?
Ok, so in the blueprint im trying to write the global variable I use the âCast to GameIstanceâ node, and I plug in âGet Game Instanceâ as an input object, right? And what do I need to do next?
Edit: Like I do not see that âSetâ node. It doesnât show up in search.
But how do you spawn the âTarget My Variableâ and the âSetâ nodes. I donât know how to add those nodes to the blueprint - they do not show up in search.