void main() { object oTarget = GetObjectByTag("fr_iwd_spirit_inv"); object oSumm = GetObjectByTag("fr_iwd_spirit_summ"); effect eBoom = EffectVisualEffect(VFX_IMP_DEATH_WARD, FALSE); effect eBeam = EffectBeam(VFX_BEAM_SILENT_COLD, OBJECT_SELF, BODY_NODE_CHEST); object oAltar = GetObjectByTag("fr_iwd_darkaltar"); ActionSpeakString("All has been said.", TALKVOLUME_TALK); DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBeam, oAltar, 4.0)); DelayCommand(1.0, PlaySound("vs_nx0headm_bye")); DelayCommand(3.0, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eBoom, oTarget, 5.0)); AssignCommand(oSumm, DelayCommand(2.0,ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE))); DelayCommand(3.0, SetPlotFlag(GetObjectByTag("fr_iwd_spirit"), FALSE)); DelayCommand(4.0, DestroyObject(GetObjectByTag("fr_iwd_spirit"))); DelayCommand(4.0, SoundObjectStop(GetNearestObjectByTag("Ghosts"))); SetLocalInt(oTarget,"Chk", 0); }