Author Topic: Object's Client  (Read 1157 times)

Did you restart blockland before retrying it?

package RewardSys
{
   function GameConnection::OnDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc, %y, %x, %z)
   {
      Parent::OnDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc, %y, %x, %z);
      %sourceClient.killCount++;     
      %this.killCount = 0;
      messageAll('',"Kill Streak:" SPC %sourceClient.killCount);
   }
};
activatepackage(RewardSys);




Now i'm not 100% sure, but shouldn't there be a %Z arg since this is a 3D game and not a 2D?

It shouldn't even have any args after %damLoc.
That wouldn't even fix the problem anyways.

Just was putting x and y there in case, wasn't sure about args.

I never use SPC just put a space after the first string half the time SPC gives me syntax errors.
 messageAll('',"Kill Streak: " @ %sourceClient.killCount);