r4m0n

MuMechLua tests

Dec 13th, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if someone wants to play with the MuMechLua... http://www.mumech.com/uploads/MuMechLib.dll
  2. example usage:
  3. MODULE {
  4. name = MuMechLua
  5. onActive = print("MuMechLua - onActive")
  6. onInactive = print("MuMechLua - onInactive")
  7. }
  8. available events: onUpdate, onFixedUpdate, update, fixedUpdate, onActive, onInactive, onStart, onFlyByWire, onGUI
  9. there is also a "loadFile" parameter that loads Lua files from the part folder
  10. you get the following objects to play in Lua: module, part, vessel
  11. when on onFlyByWire, you also get a "state" variable that is a FlightCtrlState, changing it directly controls the vessel
  12. 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