Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

 

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.