Preacher74 Posted January 15, 2018 Share Posted January 15, 2018 I want to be able to invoke the "X: COCKPIT HIGHLIGHT ELEMENT" trigger action directly from a lua script. However, this function (and the other Cockpit highlight functions) are not exposed via the trigger.action singleton. Does anyone know if it's possible to somehow directly invoke the underlying function? Looking in a mission file, (I think that) the underlying function is a_cockpit_highlight(), but it doesn't work if you try to run that function directly. Assuming that it is indeed the correct function, I assume that it is embedded in a table somewhere and I need to qualify the function name with the table parent elements. Link to comment Share on other sites More sharing options...
Preacher74 Posted January 15, 2018 Author Share Posted January 15, 2018 Solved it: it is invokable from export.lua Link to comment Share on other sites More sharing options...
Recommended Posts