| Blockland Forums > Modification Help |
| The client function for starting the game/when the game is started. |
| << < (3/4) > >> |
| Chrono:
For when the game is started: Anything in client.cs |
| Pew446:
/asjufhs/dgiu You people. otto was looking for when the blockland is started. Like double click the icon, game pops up. (I fink.) |
| Headcrab Zombie:
--- Quote from: Pew446 on October 17, 2010, 03:17:06 AM ---/asjufhs/dgiu You people. otto was looking for when the blockland is started. Like double click the icon, game pops up. (I fink.) --- End quote --- Yeah, do what DrenDran said --- Quote from: DrenDran on October 16, 2010, 07:35:33 PM ---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. --- End quote --- 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. |
| Pew446:
Hey, that gave me an Idea. Can't you make it execute when blockland starts by using MainMenuGUI::OnWake? |
| Bauklotz:
Package onStart() - called when all mods/add-ons are done loading and console goes "Engine initialized." |
| Navigation |
| Message Index |
| Next page |
| Previous page |