SeraVerte Posted December 14, 2012 Share Posted December 14, 2012 I've been trying to make a script that plays a disintegrating effect when the wearer dies. I've played around with the flameatronacheffectscript and managed to get the effect I want; however, the effect will play on the entire body (or just the body if you tick a certain checkbox)My question is, how do I make the effect play only on the armor? The desired effect is making the armor evaporate or melt when the npc dies. Thanks. The flameatronacheffectscript, for reference: Scriptname FlameAtronachEffectScript extends ActiveMagicEffect {This is a temp script to get the art working right for the flame atronach.};=============================================== import utilityimport form ;=============================================== Actor selfRefVisualEffect Property AtronachFlameTrail AutoArmor Property AtronachFlameDeadSkin Auto EffectShader Property AtronachFlameDeathFXS AutoEffectShader Property AtronachUnsummonDeathFXS Autoexplosion property AtronachFlameDeathExplosion autoint atronachHealth EVENT OnEffectStart(Actor Target, Actor Caster) selfRef = caster AtronachFlameTrail.Play(selfRef, -1) ENDEVENT Event OnEffectFinish(Actor akTarget, Actor akCaster) AtronachFlameTrail.Stop(selfRef) ENDEVENT EVENT onDying(actor myKiller) atronachHealth = selfRef.GetAV("Health") as int if atronachHealth > 0; debug.trace("flame health > 0") AtronachFlameTrail.Stop(selfRef) AtronachUnsummonDeathFXS.Play(selfRef) elseIf atronachHealth <= 0 wait(3.0); debug.trace("flame health <= 0") AtronachFlameDeathFXS.Play(selfRef) wait(0.5) selfRef.placeAtMe(AtronachFlameDeathExplosion) wait(0.1) AtronachFlameTrail.Stop(selfRef) selfRef.EquipItem(AtronachFlameDeadSkin) wait(1) AtronachFlameDeathFXS.Stop(selfRef) endif ENDEVENT Link to comment Share on other sites More sharing options...
Recommended Posts