I am attempting to design a button that opens a bomb bay when the button is pressed, and then closes once I release the button. I have had no success insofar as interactionType with its three variables, so my other option appears to be setting another operation in place to return it too zero. I am using variables only, no action groups.
@PlaneFlightX Thank you very much!
@topfuel300 Just checked, instead of putting floor(A9) in the setter, put 0. I also noticed the rotator didn't work, simply put 1 (or -1) in the "max" section. Another important note is the priority. Set the priority of the variable setter (not the button) to -1, to ensure the button takes priority.
@PlaneFlightX https://www.simpleplanes.com/a/J9o8X2/AircraftTest
You should also be able to set the interactionType to Toggle, and then ditch the need for a variable entirely (though you'll have to click the button again to turn it off)
@topfuel300 Maybe send me the file so I can see for myself what is happening.
@PlaneFlightX What operation should I use? So far I have A9 set to both inputs for the rotator and button; I have A9 - 1 on the global list with the variable named A9.
This results in a rotator that automatically rotates at the start of the game, and then moves in reverse once I press the button. Once I release the button it continues the other way.
Have a button with the interactionType of Continuous, and then have a variable setter (in the global list) setting the variable to 0.