I am using a trigger box to recognize when MyCharacter walks to a certain item.
Because of this I want MyCharacter to notice this event and when it happens, set a boolean to true.
What happens is, that the boolean is set to true when the box is triggered, but when I hit the button to recheck, the value is set to false like nothing changed. What am I missing here?
Make the boolean value a UProperty(). If you are doing this on a server + client environment, It might be possible you change the value of a variable on the server while the client still has the old value…
I added some more screenshots since this happens when I setup the same code in blueprints
It just happens in the enable flash light function which is called from level blueprint.
I found out what is wrong finally.
When I’m using the node Get Player Pawn in the level blueprint instead of creating a reference to my blueprint character everything works fine.
Can someone please just explain me the reason for this, since I’m not able to find out what is wrong here