15 lines
374 B
Plaintext
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);
|
|
}
|
|
|
|
}
|