Profile image

VTOL zero mark indicator light

49 Kiwitostes  3.6 years ago

Hi, I'm modifying a downloaded gem which is the Incom T-16 Skyhopper by @Tang0five and want to include an indicator light on the cockpit instrument panel I'm adding which will light when the VTOL is centered in the zero position. I know there's a gigantic indicator on the left side of the screen for this, but I want a light, ok?
My question is how do I script this into the XML? I imagine it's some string in the [Input] variable of the beacon, but I have no idea what. Any help?
Thanks!

  • Log in to leave a comment
  • Profile image

    And.... I did it!
    After sifting through a million posts I finally came across syntax that worked: (VTOL<0.03)+(VTOL>-0.03)
    Tadaaaaa!
    Now that I look at it, it seems soooo simple!

    3.6 years ago
  • Profile image

    Ok, so so far I have managed to establish values at which the beacon either turns on or off using comparison signs (>, <, =, etc). What I can't get right is the syntax to establish a range of values. Ideally, it should look something like this:
    Input: VTOL <0.03 & >-0.03
    This ought to light the beacon in a range of plus or minus 3% of zero.
    I doesn't.
    [frustration....]

    3.6 years ago
  • Profile image

    @Treadmill103 Will do asap

    3.6 years ago
  • Profile image

    @Treadmill103 Great! Let me know uf you make any progress. I'll try following up on you. Thanks a bunch

    3.6 years ago
  • Profile image

    Thanks, @Treadmill103
    That alone lights the beacon on any value EXCEPT zero. So, I tried adding an "invert:true" argument, but I doesn't work with beacons, it seems.
    Also, I realize that it would be very hard to even trigger the beacon as I slide over the zero value, so I want to establish a margin of proximity to zero for the light to go on.
    Any ideas?

    3.6 years ago