Author Topic: Checking if a player is spawned  (Read 346 times)

I'm messing with datablocks and stuff and tried to do this:

function silentTransmitDatablocks() {
   for(%i=0;%i<clientgroup.getcount();%i++) {
      %n = clientgroup.getobject(%i);
      if(%n.player $= "")
      {

      }
      else
      {
         %n.transmitDatablocks();
      }
   }
}


Is this okay for checking if a player is still loading (so it doesn't completely destroy their load)?

cant you just do if(isObject(%n.player))?

But it wouldn't do anything if they were dead.

Check for client.hasSpawnedOnce.

      if(%n.player $= "")
      {

      }


..?