Detect when you spawn in a server (client-side)

Author Topic: Detect when you spawn in a server (client-side)  (Read 810 times)

I swear there was a topic on how to detect when you spawn in a server from the client-side but I can't find it. How would you do this? A console trace only leads me to the three phases of loading datablocks.

MsgYourSpawn. Pretty sure that's only called the first time you spawn, and everything after is MsgYourRespawn or something. Might be mistaken, though.

Even if I am you can still package disconnect() and then only call whatever callback you're going to use the first time MsgYourSpawn is called on a given server.

You could use a variable with a combination of handleYourSpawn and disconnect to find when you first spawn.

You could use a variable with a combination of handleYourSpawn and disconnect to find when you first spawn.

Does handleyourspawn only get called the first time you spawn?
« Last Edit: July 06, 2013, 10:32:19 AM by Pacnet2012³ »

Jes00, in one thread I think you claimed that you knew how to do this in some other way - didn't you ask this before and they gave you a function found in trace?
No, I think I was only looking for a function for handling spawning and respawning (handleYourSpawn).