- Use the Gate node.
- When you enter an area (as triggered by the collision), call
Open
on the gate. - When you leave the area, call
Close
on the gate. - When you try to use Toggle the lightswitch, call
Enter
on the gate. - Have the Gate’s input call the toggle light switch event or function.
- You’ll want the Gate to
Start Closed
if you don’t start in the area.
1 Like