Important Scripts

These are the scripts that are allowed to run on your RNet server.

You have to first add a new game name, that matches the game name in your gamemaker project in Options.gml. By default this was set to "default".

After that you have to ADD NEW SCRIPT and give it a name. There are only particular script names allowed which actually do something on your server. They are

  1. "step" - This code runs every frame of the server in the "game" scope

  2. "client_sent_event" - This code runs in the server at the "game" scope when some client calls SentEventToServer()

  3. "game_server_created" - This code runs in the server at the "game" scope when the server is first created

  4. "room_created" - This code runs in the server at the "room" scope whenever a new room is created ie when a client joins a room that did not exist before or when you add a persistent object to a room which did not exist before

  5. "client_created" - This code runs in the server at the "client" scope whenever a new client is created ie whenever a new client calls ConnectToServer()

  6. "entity_created" - This code runs in the server at the "entity" scope whenever a new entity is created by a client

  7. "persistent_object_created" - This code runs in the server at the "persistent object" scope whenever a new persistent object is created

You can make more scripts with other names, but they won't actually do anything in your game. Please back up all your code!!

Last updated