Can I set an animation from the scenario file? This is a Lua vessel.
Is this a vessel you created?Can I set an animation from the scenario file? This is a Lua vessel.
void SaveState (FILEHANDLE scn);
bool ParseScenarioLine (const char *line);
Yes the vessel class is written in Lua.Hi @johnnymanly ,
I am not sure what exactly you mean by "a lua vessel".
If the vessel (class) itself was written in lua, there should be something like these callback methods:
(these are the C++ API, but names should be similar)C++:void SaveState (FILEHANDLE scn); bool ParseScenarioLine (const char *line);
It has been looong time since I last visited any lua code in Orbiter, so I am not sure if such a thing (callbacks) is implemented for a lua-vessels.
To be honest, I doubt it
Yes the vessel class is written in Lua.
I believe the methods for saving to a scenario are not implemented.
After some thought I realize my initial question is moot anyway.
Lua vessel classes don't have "consumebufferedkey" so I'm retracting and extending the gear via altitude not keystroke.
It doesn't matter where I put the gear at the start of a scenario it will always be down below a certain altitude and up above.
Thanks. I'll give it a try.While it's true that there is no consumebufferedkey implemented in lua, you can detect pressed keys with this.