Author Topic: Detect when you died or respawned  (Read 1180 times)

From a client sided view, how can you make it so that (for an example) whenever you die / respawn
it will echo [hi] in the console? <- just an example.

I'm pretty sure handleYourDeath(%msgType, %msgString, %yourName, %killerName, %respawnTime) is called when you die so might be able to package it and do what you wanted.

Also handleYourSpawn
« Last Edit: March 12, 2015, 05:01:11 PM by Crøwn »

Here's another example:

(needs packaging too)

function clientCmdServerMessage(%client, %callback, %string, %tagged, %prefix, %name, %suffix, %message)
{
   if(lastWord(%callback) $= "MsgClientKilled" && getWord(%name,1) $= $Pref::Player::NetName)
   {
      //Stuffhere
   }
}