Jump to content

[LE] Apply the dragon absorb effect on death of a regular NPC


Recommended Posts

Basically I am working on a mod based on Highlander the movie and TV series. Already got a good chunk of it done (most things that didn't involve having to dig into scripts). So right now I am working on the quickening when you kill another immortal NPC. So my obvious first stage of this, was to apply the effect that happens when you kill a dragon, to when you kill an immortal NPC.

 

I've been analyzing the dragonactorSCRIPT that is attached to dragons, and it looks like I will need to get a lot of un-needed junk there for my new script (or maybe could bypass looking at that script completely). I know the grey beards also produce a similar effect when teaching the dragonborn a shout but havent been able to hunt down the script for that (I assume it may be easier to create a script off that rather than the dragonactorScript).

Link to comment
Share on other sites

I don't remember the name of the "Soul Release VisualEffect", so you will need to do a little search on your own.


The script should extend 'Actor'.




VisualEffect Property SoulAbsorbVFX Auto
{Plays the Exchange Dragon Souls Visual FX from the dead NPC to the PLAYER}

Sound property SoulAbsorbSFX auto
{Sound FX to play when Soul is absorb}



Event OnDeath(Actor akKiller)
if ( akKiller == Game.GetPlayer() )
CamAbsorbVFX.Play(Self, afTime = 10.0, akFacingObject = Game.GetPlayer())
SoulAbsorbSFX.play(self)
EndIf
EndEvent



Have a happy modding.

Edited by maxarturo
Link to comment
Share on other sites

 

I don't remember the name of the "Soul Release VisualEffect", so you will need to do a little search on your own.
The script should extend 'Actor'.


VisualEffect Property SoulAbsorbVFX Auto 
{Plays the Exchange Dragon Souls Visual FX from the dead NPC to the PLAYER}
 
Sound property SoulAbsorbSFX auto
{Sound FX to play when Soul is absorb}
 
 
 
Event OnDeath(Actor akKiller)
   if ( akKiller == Game.GetPlayer() )
        CamAbsorbVFX.Play(Self, afTime = 10.0, akFacingObject = Game.GetPlayer())
        SoulAbsorbSFX.play(self)
EndIf
EndEvent

Have a happy modding.

 

Thankyou, I figured it out and got a script working.

Link to comment
Share on other sites

One little correction that i saw while reading your respond, change this line:

SoulAbsorbSFX.play(self)

to

SoulAbsorbSFX.play(Game.GetPlayer())


Nothing serious, but the sound FX should play on the actor that is absorbing the soul, so the player.


Have a nice weekend.

Link to comment
Share on other sites

 

One little correction that i saw while reading your respond, change this line:
SoulAbsorbSFX.play(self)
to
SoulAbsorbSFX.play(Game.GetPlayer())
Nothing serious, but the sound FX should play on the actor that is absorbing the soul, so the player.
Have a nice weekend.

 

Yep, I deduced what the MQDragonKillScript was doing and was able to pull what I needed out of it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...