Wydawnictwo Mfiles Pl Posted August 18, 2014 Report Posted August 18, 2014 Hello! I try to create condition for button. In manual it is described like this: 1=W0366=0 P1,0,C65570,0 and it's works. Conditions are for B, W and D type variables. My problem is, that I have Float32 variable. How to do it? This line works fine. It increases float offset by 0.1 1=P1,0,x78005668,100 I'd like to do it this way (but what to put instead of "?"): 1=?5668>0 P1,0,x78005668,100 I tried with double word, as it is 32-bit too, but without success. Is there any solution? Regards, Slawek
Pete Dowson Posted August 18, 2014 Report Posted August 18, 2014 On 8/18/2014 at 7:24 PM, Wydawnictwo Mfiles Pl said: I'd like to do it this way (but what to put instead of "?"): 1=?5668>0 P1,0,x78005668,100 I tried with double word, as it is 32-bit too, but without success. Is there any solution? All the conditions work only with unsigned integers. All the >0 test would do is check if it is not zero. If that is not what you want, then your only alternative is to use a Lua plug-in to do what you want. The plug-in system was added precisely for this reason, to allow folks to do things I hadn't thought of without me constantly adding more and more facilities into FSUIPC itself. Regards Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now