MMD_PRC8/_module/nss/kill_undead.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

15 lines
374 B
Plaintext

void main()
{
object oTarget = GetEnteringObject();
int iType = GetRacialType(oTarget);
if ( iType == RACIAL_TYPE_UNDEAD )
{
effect eDazzle = EffectVisualEffect(VFX_DUR_GLOW_LIGHT_YELLOW);
effect eDie = EffectDeath(TRUE,TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eDazzle,oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eDie,oTarget);
}
}