Prototyping.tscript 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. function Prototyping::onCreate(%this)
  2. {
  3. }
  4. function Prototyping::onDestroy(%this)
  5. {
  6. }
  7. //This is called when the server is initially set up by the game application
  8. function Prototyping::initServer(%this)
  9. {
  10. %this.queueExec("./scripts/car");
  11. }
  12. //This is called when the server is created for an actual game/map to be played
  13. function Prototyping::onCreateGameServer(%this)
  14. {
  15. %this.registerDatablock("./datablocks/hoverboat.tscript");
  16. %this.registerDatablock("./datablocks/car.tscript");
  17. %this.registerDatablock("./datablocks/flier.tscript");
  18. }
  19. //This is called when the server is shut down due to the game/map being exited
  20. function Prototyping::onDestroyGameServer(%this)
  21. {
  22. }
  23. //This is called when the client is initially set up by the game application
  24. function Prototyping::initClient(%this)
  25. {
  26. }
  27. //This is called when a client connects to a server
  28. function Prototyping::onCreateClientConnection(%this)
  29. {
  30. }
  31. //This is called when a client disconnects from a server
  32. function Prototyping::onDestroyClientConnection(%this)
  33. {
  34. }