Knight_Shield wrote...
I have a statue ..with this script in the ondeath.
question: If a PC smashes the statue it respawns ....BUT if it is destroyed by my other script when someone clicks on a door it does not respawn .
I need this statue to respawn after being destroyed .....
I don't think the DestroyObject() function triggers a placeable's OnDeath event. You'll have to use something like this to destroy the statue:
object oStatue = GetObjectByTag("StatueTag");
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(GetCurrentHitPoints(oStatue)), oStatue);
-420