RipKirby Posted January 23, 2010 Posted January 23, 2010 Since the tailhook on the F-14 doesn't work with normal control inputs, could this be done via LUA import?
RvEYoda Posted January 23, 2010 Posted January 23, 2010 http://lockon.co.uk/index.php?lang=en&end_pos=567&scr=default says : "command = 69 -- Hook ", did you try writing a script in export.lua triggering LoSetCommand(69); ? S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'
RipKirby Posted January 23, 2010 Author Posted January 23, 2010 Uhm, this would be my first attempt at Lua scripting. I do some php and javascript so it's not too hard to understand. Correct me if I'm wrong, but export.lua seem to send values, I guess I want to import values? I've tried this: function LuaExportBeforeNextFrame() -- Works just before every simulation frame. -- Call Lo*() functions to set data to Lock On here -- For example: -- LoSetCommand(3, 0.25) -- rudder 0.25 right -- LoSetCommand(64) -- increase thrust LoSetCommand(69); -- deploy hook end doesnt affect the hook in the tomcat. Sorry for the noobness. Any suggestions?
RvEYoda Posted January 23, 2010 Posted January 23, 2010 well that would press the button every frame. Don't know if it is such a good test... but i dont think the command will help though S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'
RipKirby Posted January 23, 2010 Author Posted January 23, 2010 (edited) Hmm, nevermind. I had a fixation that the AI F-14 would have the F-15's cockpit. It's the SU-27 so it's useless anyhow, since VNAO did the '33 mod with working hook. I just thought it may be possible from the exterior. Thanks for looking, though. Edited January 23, 2010 by RipKirby just wanted to say thanks.
Recommended Posts