Author Topic: On Client enter game/spawn?  (Read 913 times)

Is there a function for that?

I don't think anyone is going to help you seeing as there has been more then enough of topics with this question. We don't spoon feed you information, try searching.

I don't think anyone is going to help you seeing as there has been more then enough of topics with this question. We don't spoon feed you information, try searching.

Its actually a different question but its very similar, and you probably just should've asked it in that topic, but its


GameConnection::OnConnect(%client);


right?

Instead of asking, search, or use %client.dump();

gameConnection::onClientEnterGame(%client)?

Related functions and when they're called:
::onConnectRequest - When the client presses join on the join server screen. It checks to see if the server is full or if they put in the wrong password, or if the user is banned. Cannot be packaged or overwritten.

::onConnected - When the client successfully connects to the server. Cannot be packaged or overwritten. However this instantly calls ::autoAdminCheck which you can package rather than ::onConnected.

::onClientEnterGame - Called once the client finishes loading.

::spawnPlayer - Called when the client spawns or respawns their player.

All of these are GameConnection.
« Last Edit: November 13, 2009, 07:35:17 PM by Chrono »

I'm pretty sure you can package gameConnection::spawnplayer . It's used in lots of RPG mods

I'm pretty sure you can package gameConnection::spawnplayer . It's used in lots of RPG mods
Oops, I had the wrong function.
I meant to say createPlayer, which you should just use spawnPlayer anyways.

onConnectRequest can be packaged. It's how rtb works.