UW2_PRC8/_module/nss/kill_npcs.nss

14 lines
277 B
Plaintext
Raw Permalink Normal View History

2023-09-25 20:24:01 -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);
}
}