How to check if switch equals false

Title is somewhat misleading but I’m not sure how else to phrase it. The image below contains a snippet of my code.

What I am trying to accomplish is to enable (out2) on toggle when the character collides with FlyingChanger, depicted as “II” in picture. When the player dies, I want the toggle to switch to (out1) and go back to normal.

How can I achieve this?

1 Like

don’t use toggleswitches, use the normal switch behaviour

1 Like

How can I do this? How can I use a regular switch for what I need to achieve? What the toggle switch does is toggle between walking mode and flying mode

a normal switch can be turned off and on, it’s better to use a mix of normal switches and routers instead of toggle switches to achieve what you are trying to do

1 Like

I’ll give it a shot and let you know.

I’ve tried to make it work and its certainly much better than what I had previously. Good luck deciphering the picture above lol.

Basically what it does is, if the bottom switch is on and there is input, the bottom switch will turn off the top switch and vice versa. The thing that turns on the bottom switch is a collision with the flying trigger hitbox and the thing that turn on the top switch is the death detector system thing (labelled III in original picture). Only problem I am having is that the switches I think are turning each other off as input is detected for walking at the same time input is detected for flying so they both turn off each other. I added some timers but I’m not sure how to fix this.

is this supposed to be rs nor latch or somethin

No idea, I’m not sure how I can accomplish my goal. What is an RS nor latch? I assume nor as in the logic gate?

um can you explain the what you want a bit better, sorry… And if you explain WHY you want this you might not even need to do what you are trying to do to complete your goal

image
Solved by using numbers as booleans.

1 Like