cellular55 Posted July 6, 2023 Report Share Posted July 6, 2023 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 More sharing options...
John Dowson Posted July 7, 2023 Report Share Posted July 7, 2023 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 More sharing options...
cellular55 Posted July 7, 2023 Author Report Share Posted July 7, 2023 Hi, thanks for the prompt reply... the suggested method works great! KR Joe Link to comment Share on other sites More sharing options...
John Dowson Posted July 7, 2023 Report Share Posted July 7, 2023 👍😎 Link to comment Share on other sites More sharing options...
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