PoA_PRC8/_module/nss/kill_npcs.nss

14 lines
277 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
//This script goes in an OnEnter event to kill
//ALL non-PCs or DMs
void main()
{
object oPC = GetEnteringObject();
int nType = GetObjectType(oPC);
if (nType ==OBJECT_TYPE_CREATURE && !GetIsPC(oPC) && !GetIsDM(oPC))
{
DestroyObject(oPC, 0.0f);
}
}