Guest User

Untitled

a guest
Nov 24th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. function onScriptStart() --called when script is loaded
  2. MsgBox("Hello World")
  3. end
  4.  
  5. function onScriptCancel() --called when the script ends
  6. MsgBox("Bye :(")
  7. end
  8.  
  9. function onScriptUpdate() --called every frame
  10. if saidHello == false and GetFrameCount() == 300 then --test message once after 300 frames
  11. saidHello = true
  12. MsgBox("Test 12, 123")
  13. end
  14. end
  15.  
  16. function onStateLoaded() --gets called when a savestate was loaded successfully by the lua script
  17.  
  18. end
  19.  
  20. function onStateSaved() --gets called when a savestate was saved successfully by the lua script
  21.  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment