Profile image

Need help with a FT function that does not work and won't let me finish my build

2,693 GiuliMBorgesYT  11 months ago

I'm trying to make a beacon light up when the angle between my target and my plane is smaller than 4. The function I'm trying to use is
abs(deltaangle(TargetElevation,PitchAngle) < 4 , but for some reason it outputs 1 (???). I ran abs(deltaangle(TargetElevation,PitchAngle) and it spits out a number, just like what I want. When I add the < 4 it gets fucked up. Surprisingly (abs(deltaangle(Heading,TargetHeading)) works just fine. Thanks

  • Log in to leave a comment
  • Profile image

    @hpgbproductions yeah but it's always outputting 1. i just used a different logic to create a different function and it worked now

    11 months ago
  • Profile image

    Comparison operators return true or false, which are converted to +1 or -1 respectively. Iirc beacon lights turn on if the input is nonzero

    +1 11 months ago