Jump to content
The simFlight Network Forums

Avatar offset


Recommended Posts

Hi,

is there an offset to understand if the avatar mode is on or off to execute different actions respect that?

I have  tried to read the Sim variable 'AVATAR MOSE IS ATTACHED' with a LUA script, but with no success.

I'm using P3D 5.4 with FSUIPC 6.20

Thanks and KR 

Joe

 

 

Link to comment
Share on other sites

12 hours ago, cellular55 said:

is there an offset to understand if the avatar mode is on or off to execute different actions respect that?

Not by default.

12 hours ago, cellular55 said:

I have  tried to read the Sim variable 'AVATAR MOSE IS ATTACHED' with a LUA script, but with no success.

How are you doing this? The only way to read a simvar not held in an offset in lua would be to execute some calculator code to write the simvar value to an lvar (local variable) and then read the lvar.

However, the best way to read (and write/update) to the AVATAR MODE IS ATTACHED simvar would be to add it to a free FSUIPC offset and then use that offset. To do this, please see the Advanced User guide section Additional Simulator Variables (simvars) to FSUIPC Offsets on page 36.

John

Link to comment
Share on other sites

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.