Jump to content

Forcing an Actor to cast a spell


SoulLimit

Recommended Posts

Hi,

 

What I am trying to do is make it that when an Actor dies, a script attached to his alias cast a spell on the dying actor.

 

My problem is that I cannot see where the actor's reference would be stored for me to cast it on him.

 

CODE:

Scriptname SL_CombatAliasNPCScript extends ReferenceAlias

Import Debug

Race Property NPCRace  Auto
SPELL Property FindRace  Auto  

Event OnDying(Actor akKiller)
;This is where I want the spell to cast
EndEvent

Event OnDeath(Actor akKiller)
TrAcE("Combat Alias Has Died, adding in body parts to inventory")
EndEvent


 

SoulLimit

Link to comment
Share on other sites

  • Recently Browsing   0 members

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