generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
15
_module/nss/prc_pwondeath.nss
Normal file
15
_module/nss/prc_pwondeath.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
//:://////////////////////////////////////////////////
|
||||
//:: prc_pwondeath.nss
|
||||
/*
|
||||
Catch-all OnDeath event handler for NPCs.
|
||||
|
||||
Tracks player kills.
|
||||
*/
|
||||
//:://////////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastKiller();
|
||||
int oKil = GetLocalInt(oPC, "iKilled");
|
||||
oKil = oKil +1;
|
||||
SetLocalInt(oPC, "iKilled", oKil);
|
||||
}
|
||||
Reference in New Issue
Block a user