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
"step" - This code runs every frame of the server in the "game" scope
"client_sent_event" - This code runs in the server at the "game" scope when some client calls SentEventToServer()
"game_server_created" - This code runs in the server at the "game" scope when the server is first created
"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
"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()
"entity_created" - This code runs in the server at the "entity" scope whenever a new entity is created by a client
"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