PWE_PRC8/_module/nss/sb_creaturekill.nss

13 lines
297 B
Plaintext
Raw Normal View History

2025-04-03 10:29:41 -04:00
// Assign to the OnDeath script option for each creature in the module
void main()
{
object oKiller = GetLastKiller();
// Is this object a PC?
// Increment the killer var
int iKilled = GetLocalInt (oKiller,"iKilled");
++iKilled;
SetLocalInt(oKiller,"iKilled",iKilled);
}