Author Topic: Detect When Someone Spawns (client sided)  (Read 551 times)

Is there any way to detect when someone (other than you, I know how to do that) spawns?

If there is it's probably a protected function, i'm not seeing anything in trace.

package playerspawn
{

   function GameConnection::spawnPlayer(%client)
   {
    //idk
   }
};
activatePackage(playerspawn);

package playerspawn
{

   function GameConnection::spawnPlayer(%client)
   {
    //idk
   }
};
activatePackage(playerspawn);
That will only work server-sided.


set up a tick to listen to things being added to serverconnection, and if it is a player make it do stuff

Is there a function like serverConnection::add(%this,%obj) that you can package?

set up a tick to listen to things being added to serverconnection, and if it is a player make it do stuff

= laggy.

Is there a function like serverConnection::add(%this,%obj) that you can package?

Highly doubt it.

= laggy.

Highly doubt it.
Not if you do it right. Check if the count changes, and if it does just look at new objects.

And it's worth a shot.

Is there a function like serverConnection::add(%this,%obj) that you can package?
yes
i hear tales of it causing big problems when you use it or something

= laggy.

I do that in literally all of my client mods
you just start counting from the end and go backwards and stop when it hits objects you are already aware of.
works magically.