Hello I have a questien about how to set a boolen true/false.
In my skript i want to set a boolean to false when a certain path is executed.
After that i want to use that variable in another BP.
But that doesnt work.
When I set the boolen to false manually everything works fine and the laser is turned off.
I tried setting the boolen to true or false with a button press and brint a string to see if it works but that doesnt work either.
Can anyone please help me with that.
Maybe show the whole script, because bools definitely do work
teh whole script is a bit big, but do you know why not even this setup is working when i press the J key?
The J key stuff looks fine, but I think something is amiss in your BP somewhere…
Hey @volk.SWAG.en,
You are calling your check at begin play which is only called when the game is started. Instead for your test above, try calling using a custom event that can take place after you change the value instead of on startup.
2 Likes
Setting the boole works now but using the variable only works when i set it manually to true or false otherwise it always seems to be false. Anybody has an idea why?