Enable/Disable Output Toggle

Discussion in 'PangoScript, Universe and Midi Templates' started by FutureWeapons, Mar 19, 2015.

  1. FutureWeapons

    FutureWeapons New Member

    Hi,

    I've started working with PangoScript in Beyond Universe and am looking to create a very simple toggle button. I would like the button to Enable and Disable laser output.

    What programming is required to accomplish this? I'm aware of the "EnableLaserOutput" and "DisableLaserOutput" commands but I'm not sure how to use them. Can someone show me how the Script for this would work?

    Thanks,
     
  2. Aaron@Pangolin

    [email protected] Staff Member

    Just use these two as they are. Make two buttons in the Universe, in edit mode use the inspector tab to enter your PangoScript for button one to use EnableLaserOutput and the other to DisableLaserOutput. That's all you should need to do. :cool:
     
  3. FutureWeapons

    FutureWeapons New Member

    Thanks Aaron. Two buttons would work just fine but I'm hoping there is a more elegant one-button solution. It would help my programming abilities to know how to code a two-state toggle.
     
  4. Flyingpictures

    Flyingpictures Beta Tester

Share This Page