Current SPAD.neXt Release: 0.9.12.123

This forum has closed. Please join our Discord Community.

SPAD.neXt online services are no longer available for SPAD.neXt Versions < 0.9.11.5

[script panel] cant call out the equals to command

General Discussions
Locked
pannam
Passenger
Posts: 2
Joined: 13 Nov 2020, 06:25
Status: Offline

[script panel] cant call out the equals to command

Post by pannam » 15 Nov 2020, 09:15

Everything works great, I am using it with voice attack. Here is my scenario

When the altitude is 5200 I want to call out "acceleration altitude". When I use the comparator equals to nothing happens but when I use the comparator is in range 5200 to 5201 I get the call out.

why can't I set up equals to in comparator?

User avatar
c0nnex
Site Admin
Posts: 5469
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: [script panel] cant call out the equals to command

Post by c0nnex » 30 Nov 2020, 15:16

Becuase the probability that the event will be triggerd exactly at 5200.0 feet is less than 1%.
The altitude is updated very frequenty, but it might be that 5200.0 is not sent to spad by the sim (e.g. becasue last update was 5199.9ft and next comes at 5200.5 ft).
IYou either have to work with a range or create a customized version of the altitude data.
You can do so by creating an expression for it (Addons->Expression) with "Truncate([Altitude])" as expression and reference that expression as source of the condition

Locked