Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if someone wants to play with the MuMechLua... http://www.mumech.com/uploads/MuMechLib.dll
- example usage:
- MODULE {
- name = MuMechLua
- onActive = print("MuMechLua - onActive")
- onInactive = print("MuMechLua - onInactive")
- }
- available events: onUpdate, onFixedUpdate, update, fixedUpdate, onActive, onInactive, onStart, onFlyByWire, onGUI
- there is also a "loadFile" parameter that loads Lua files from the part folder
- you get the following objects to play in Lua: module, part, vessel
- when on onFlyByWire, you also get a "state" variable that is a FlightCtrlState, changing it directly controls the vessel
- those prints go to the Autom8 console, not the game log. if you want that, try: script.call("MonoBehaviour.print", "hello world!")
Advertisement
Add Comment
Please, Sign In to add comment