Author Topic: How to check if the game is hosting a server or not?  (Read 691 times)

I need this to stop a script that keeps going even if I stop hosting.

There's a variety of callbacks, but disconnectCleanup should cover most. Keep in mind it runs when you leave a normal server too though.

Maybe you could perform a game check that only the server-sided client would be able to carry out?

EX: if(isObject(findclientbyname(%client))

Maybe you could perform a game check that only the server-sided client would be able to carry out?

EX: if(isObject(findclientbyname(%client))
Uh
What is that code supposed to do


he means findclientbyname only works if the instance of blockland it's being called from is currently hosting a server.

I worked it out with if(!isObject(MainBrickGroup)).