I’ve made a camera that has both a flashlight and night vision the opening and closing of the camera works fine but if i turn on the flashlight or night vision then close the camera i have to hit the corresponding key for flashlight or night vision twice when i open back up the camera.
It is working correctly
If you do ‘flip’, use the camera, then stop using it. Next time you press one of those keys, you’ll get the corresponding ‘flop’.
It might work better with a bool. When you start the camera, make sure the bool is reset so you can consistently switch modes.
I’m still new to this so I’m assuming you mean using a bool as in using the not node with the branch instead of the flipflop?
Yes, use a bool to tell you if the camera is in night mode. So you can do stuff like
1 Switch to follow cam
2 Night mode ( set bool )
3 Switch to normal cam
4 Later, switch to follow cam
5 The bool is set, so directly into night mode.
OR
Always make sure the cam resets when you first use it.
How would I make sure it resets? I know there’s a reset node but I’ve never used it I’m assuming it could be used in this context?
When you go to the camera, always start in normal mode.
If they hit Q, you can switch back and forth.
I thought the solution you had given me had fixed the issue, but it seems not assuming I set it up correctly its working as a flipflop as intended but I’m still having to hit the Q or F key twice if I close the camera while the flashlight or night vision is on when it closes.
I’ve fixed the flashlight by hitting the check box for new visibility under false rather than true and I no longer have to double click f if I close the camera while the flashlight is on now my only issue is night vision is doing the same
After messing around I believe I have fixed my problem, by adding a set visibility node to both true and false of the night vision I was able to connect the target to the follow camera and check the new visibility box under false