Steve38 Posted November 24, 2009 Report Posted November 24, 2009 Hi Pete, I'm having trouble using the ipcPARAM variable. I have assigned a button to run an LUA script and in the parameter field entered the number one. I have tried just reading it as param=ipcPARAM and also assigning it as param = ipc.get("ipcPARAM") in the script but without any success. I want to be able to test ipcPARAM to determine different actions in the script. e.g. if param == 1 then ....... I'm clearly missing something, can you help please? Thanks Steve
Pete Dowson Posted November 24, 2009 Report Posted November 24, 2009 I'm having trouble using the ipcPARAM variable. I have assigned a button to run an LUA script and in the parameter field entered the number one. I have tried just reading it as param=ipcPARAM and also assigning it as param = ipc.get("ipcPARAM") in the script but without any success. There should be no trouble getting the parameter simply by reference to ipcPARAM. Does the log show any errors in your program? If not then ipcPARAM is certainly defined okay -- so what value does it have? BTW what version of FS and FSUIPC are you using? If I am to test things myself in answer to such questions I do need to know such things. Regards Pete
Steve38 Posted November 24, 2009 Author Report Posted November 24, 2009 I had missed that there was a debug option. I have fixed it. A line of code seemed to be corrupt, it was reporting a missing = symbol which was there. I retyped it and it was fine. Thanks
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