Jump to content
The simFlight Network Forums

Recommended Posts

Posted

In searching the FSUIPC7 forum, I cannot find where ipcPARAM is set. Searching the internet, found many ipcPARAM discussions, but not where the value in the ipcPARAM is set.

Could you explain, please.

Posted

From the FSUIPC Lua Plugins document:

Quote

On top of these facilities, when a Lua plug-in is run because of an FS control (Lua <name> or Lua Debug <name>), any parameter passed with that control is available to the Lua program as a variable called ipcPARAM. This might be particularly useful if the control is assigned to an Axis or POV, where the axis or POV value is thereby passed to the program. The added FSUIPC control "LuaValue ..." also passes values via ipcPARAM, and changes to it can trigger Lua plug-in code via a special event.

Note that the ipcPARAM value is set externally to the Lua plug-in before each function entry from an event, and also after every use of the ipc.sleep function. It is not a variable which can be used internally to the plug-in to retain its own value unless both events and sleeps are completely avoided

 

 

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.