Jump to content

Recommended Posts

Posted

I wrote a plugin which should set the value of sim/flightmodel/position/psi to 0. I added a new generic trigger and linked the command by using Plane maker. No problem until here. When I click generic trigger it sets it to zero, but when I remove my hand on mouse it again sets it to it's own calculated value. I want psi to remain 0. How can I do this?

Posted

It's ok. But,

a = XPLMFindDataRef("sim/flightmodel/position/local_y");

XPLMSetDataf(a, 100.0f);,

when I write this code it doesn't stay in the sky, it crashes after a while. It means y set once to 100.0f but it changes. I don't want it to change, I want it to remain as 100.0f.

Posted

I wonder is there any sample code for that? It is not very easy to understand just with the documentation, a sample code would be very useful.

Understanding this will help.

 

PhM

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...