Profile image

AngleOfAttack Input difficulties

497 FlightFun  3 months ago

I'm trying to make a stall warning indicator.

the way I have it set up right now is a piston that pushes some text from behind to in front of a black button, to provide the illusion of a light coming on.

Right now I'm using AngleOfAttack>10, but it hasn't worked.
Any advise? Maybe a better way to do this?
Any help is much appreciated!

  • Log in to leave a comment
  • Profile image
    497 FlightFun

    @DumbPlaneMaker I've got it working, thanks for your help!

    +1 3 months ago
  • Profile image
    497 FlightFun

    alright, I'll give it a try. I think I understand now.

    3 months ago
  • Profile image

    @FlightFun No, if it's in these things " " the game should recognize it as text

    3 months ago
  • Profile image
    497 FlightFun

    Sorry I'm an idiot, FT isn't my strong suit. I'd Imagine I can't just copy and paste {-AngleOfAttack>10?"WARNING":"-"} and put it in the text. I did it anyway to make sure, but I'm still missing something. Do I have to make the game recognize "WARNING" before it will work?

    3 months ago
  • Profile image

    AngleOfAttack is negative compared to what is expected, very weird but that's how it is

    +1 3 months ago
  • Profile image

    Firstly, dont use a piston, use the label in the cockpits tab. To write a FT code, put it in {}. To write an "if" function, write the condition, then "?", then what happens if your condition is true, then ":", then what happens if your condition isn't true. So the text in the label should look like

    {-AngleOfAttack>10?"WARNING":"-"}

    Or something other than WARNING, you decide that.
    Btw it's -AngleOfAttack because in SP an angle of attack of say 10 degrees would give -10 as an output.

    3 months ago
  • Profile image
    497 FlightFun

    @hpgbproductions I don’t quite know what you mean? I should elaborate more here, I’ve put AngleOfAttack>10 in the Input box using overlord. Is there something there that I’m missing?

    3 months ago
  • Profile image

    The idea of the code is solid, but check the actual output of the variable, it might not be what you expect

    3 months ago