So I was trying to build a fighter with an internal weapons bay, but I can't figure out how to make the doors open and then immediately close when I launch a missile or bomb. I've tried ceil(pingpong(0,FireWeapons))
on the hinges but it doesn't seem to work. Please tell me what I'm doing wrong, thanks.