If Team Switch is true, a flag should be blue, if false, it should be red (default is false “red”)
But when I press T, nothing really happens. Sometimes it changes when save but idk. I then need to make a flip flop so that when I press T, it switches my team from blue to red and vice versa
The only thing your blueprint does when pressing “T” is set a flag named “Team Select” to true.
You’re not showing any place where that flag might be used.
Try this:
select the node that says “Set Team Select checked”
press F9 to make a breakpoint there
start the game playing in editor
press T
If the execution stops and shows that node that you put the breakpoint on, you know that that action was properly detected.
The problem is then in whatever code you’re supposed to be using that checks that flag.
Thanks for the fast reply. I tried that and it showed me the node. I will try to find the problem tomorrow since it is late for me. After that I will post what the problem was for other people. Much appreciated!
Ok I followed the nodes and the problem is that the begin overlap node does not care what the button “T” does. How do I make it so that a event (On Component Begin overlap) only proceeds under a variable (the input button). The point is that if I stand near a flag, it only changes when I press “T”. I tried placing the variable after the overlap and it didn’t work.