Azizalfauza Posted November 15, 2022 Share Posted November 15, 2022 So i already make a custom npc, and i want it to explode (or any other event) when i killed it. I only understand how to make it like Flaming Familiar when messing around with papyrus script (well, not really understand about the script, just know how to edit already existing script) who will immediately explodes a few moments after conjured. What i wanted is to be like a Flame Atronach, to have an event that triggered upon npc's death/being killed. Do anyone can help me with this ? Thank you Link to comment Share on other sites More sharing options...
maxarturo Posted November 18, 2022 Share Posted November 18, 2022 You will either: 1) Add a script directly to the actor itself 2) Create an 'Ability' spell which will hold the script. What's the difference?: By doing #1 you have to do the same proccess everytime you want this to be appied to an npc, while with the 'Ability' you make it only one time and then you just drag it into the actor's spells inventory. For #1: Explosion Property Explo01 Auto EVENT OnDeath(Actor akKiller) Self.PlaceAtMe(Explo01) ENDEVENT For #2 you can use the above or: Explosion Property Explo01 Auto Actor SelfRef EVENT OnEffectStart(Actor akTarget, Actor akCaster) SelfRef = akTarget ENDEVENT EVENT OnEffectFinish(Actor akTarget, Actor akCaster) SelfRef.PlaceAtMe(Explo01) ENDEVENT Link to comment Share on other sites More sharing options...
Recommended Posts