[V] PhilA
Volition Staff
We actually have at least 2 separate lua states - one for gameplay and another for the interface.
Within a single lua state, you're able to invoke any of the currently defined functions. Currently defined being the key. We keep the lua footprint manageable by only loading the files that are currently needed. So, for example, we only load a single mission .lua file at a time.
I'm not as familiar with the interface side of things, but I would assume that the same thing is done there. So really, the answer is probably that your success is going to depend on which functions you are trying to call and the current game state.
Within a single lua state, you're able to invoke any of the currently defined functions. Currently defined being the key. We keep the lua footprint manageable by only loading the files that are currently needed. So, for example, we only load a single mission .lua file at a time.
I'm not as familiar with the interface side of things, but I would assume that the same thing is done there. So really, the answer is probably that your success is going to depend on which functions you are trying to call and the current game state.