I simply need to know how to edit a bool variable from a different BP from my event.
How do I do this?
I simply need to know how to edit a bool variable from a different BP from my event.
How do I do this?
There are two ways:
Make a function on the BP with the private variable that alters it. With a reference to this BP, casted correctly call the function and pass in the input you want to effect the variable.
Make the variable , check the box next to it so that you see the eye, or select editable. Then simply cast a reference to it correctly and then set it.
Edit: Adding some screenshots as requested. Looking at these I see that I don’t even have the variables set as editable. This may be a case it’s ok because the other BP is the AnimBlueprint. I don’t know for sure. But, this works. If you are not seeing the variables when pulling off the cast Node, then make them Editable and they will show up.
I pulled off from the Cast Node and typed set, then scrolled down until I saw Look At, which is one of the variables. I realized the previous pics are showing using the variables not setting them directly. I probably should have made a new class to take screenshots. But, here.
Do you mind sending me a screen shot of the blueprint setup?
what do you link up to the target of the “get controller” node?
This is in an AnimBlueprint it has a reference to the controlled pawn. Pawn’s have a node Get Controller.
The cast looks strange, assuming the cast is correct then yes, setting the variables like that makes them all false.
But, it looks like you have a Sky object that you then get a controller, then cast it to Sky. That doesn’t make sense. If you have the Sky object allready as the right type you don’t need to cast, just use it.