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

XPLMRegisterFlightLoopCallback

 

 

You're going to need to spend some time reading through the X-Plane SDK and testing the examples provided.

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.

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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