runningaround Posted September 17, 2012 Share Posted September 17, 2012 So I've been trying to get a custom NPC follower to explode when they die, but the scripts I've tried haven't worked. I was wondering if anyone could help. The scripts I tried are below...I have no scripting experience. Scriptname LucyDeathsplosion extends activemagiceffect Actor selfRef explosion property FXLucyDeathsplosion auto int ActorHealth EVENT onDying(actor myKiller) ActorHealth = selfRef.GetAV("Health") as int if ActorHealth <= 0 wait(1.5) selfRef.placeAtMe(FXLucyDeathsplosion) endif ENDEVENT and Scriptname LucyDeathsplosion extends activemagiceffect Explosion property FXLucyDeathsplosion Auto Event onDying(actor killer) getTargetActor().placeAtMe(LucyDeathsplosion ) EndEvent Link to comment Share on other sites More sharing options...
AlphaWoIF Posted October 26, 2012 Share Posted October 26, 2012 Real shame as i am after the same thing for some custom creature.i when as far as just adding the FlameAtronach script as they explode on death but didnt work:( either out right exploding or flammable poisons gas cloud being released would be ace my end. Link to comment Share on other sites More sharing options...
AmeaAya Posted October 27, 2012 Share Posted October 27, 2012 (edited) Try this: Scriptname LucyDeathsplosion extends Actor Explosion property FXLucyDeathsplosion Auto Event onDying(actor killer) Self.placeAtMe(LucyDeathsplosion ) EndEvent It's more or less identical to something I did and it worked fine.If it does not, change 'onDying' to 'onDeath' because that is what I had and it worked great. Also make sure you set the property! Right click on the script in the Actor window, and click 'Properties'. If "FXLucyDeathsplosion" is the name of the explosion you can simply click auto-fill and it will do it for you. Edited October 27, 2012 by AmeaAya Link to comment Share on other sites More sharing options...
Recommended Posts