Author Topic: The client function for starting the game/when the game is started.  (Read 1068 times)

Title;

I'd like to know this.

Do you mean when the player enters the server, or enters Blockland?

Do you mean when the player enters the server, or enters Blockland?
that


I'd like to know the other one, too, though.

I'd like to know the other one, too, though.
Do you mean when the player enters the server, or enters Blockland?
?

Enters the server
GameConnection::autoAdminCheck(%client) (make sure to return the parent)
Start a server
onServerCreated() ?

no, zack

client for starting blockland

and client for joining a server  :cookieMonster:

no, zack

client for starting blockland

and client for joining a server  :cookieMonster:
He gave you for joining a server, and as for starting blockland, the closest thing you have is simply writing down what ever you want to happen outside of any function, it will be executed as soon as the add-on is executed, which is as close as you can get.

He gave you for joining a server

onServerCreated would be the client function for when a server is joined?

For when the game is started:

Anything in client.cs

/asjufhs/dgiu


You people.

otto was looking for when the blockland is started. Like double click the icon, game pops up. (I fink.)

/asjufhs/dgiu


You people.

otto was looking for when the blockland is started. Like double click the icon, game pops up. (I fink.)
Yeah, do what DrenDran said
he closest thing you have is simply writing down what ever you want to happen outside of any function, it will be executed as soon as the add-on is executed, which is as close as you can get.

As for a clientside function for when you join a server, I'd try either parenting whatever function is called when you click the join server button, or LoadingGui::onWake, though that would cause issues if you manually change to it for some reason. Though there's probably some other function that I can't think of.

Hey, that gave me an Idea. Can't you make it execute when blockland starts by using MainMenuGUI::OnWake?

Package onStart() - called when all mods/add-ons are done loading and console goes "Engine initialized."