Jump to content

Invoking cockpit highlight functions from a Lua script


Preacher74

Recommended Posts

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

  • Recently Browsing   0 members

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