Greetings Ye who hold the knowlwdge!
I am wishing to destroy the monster when they enter the trigger... but only some get destroyed... the rest walk through as if no trigger there... the tags are correct... plez tell me what I am missing
////////////////////////////////////////////////////////////////////////////////
//Script: dz_s_desyhates
//goes on OnEnter
//
// Created By: GB
// Created On: 4/3/12
////////////////////////////////////////////////////////////////////////////////
void main()
{
object oTarget = GetEnteringObject();
if (oTarget == GetObjectByTag("dz_c_bloodrip"))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE,FALSE), oTarget);
DelayCommand(1.0, DestroyObject(oTarget));
}
if (oTarget == GetObjectByTag("dz_c_hatemonger"))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE,FALSE), oTarget);
DelayCommand(1.0, DestroyObject(oTarget));
}
if (oTarget == GetObjectByTag("dz_c_hatewings"))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DIVINE_STRIKE_FIRE,FALSE), oTarget);
DelayCommand(1.0, DestroyObject(oTarget));
}
}
thanks...
at your service,
'>
Modifié par GrandaddyBonegrinder, 17 mai 2012 - 03:08 .