SoulLimit Posted September 3, 2012 Share Posted September 3, 2012 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 More sharing options...
gsmanners Posted September 3, 2012 Share Posted September 3, 2012 I guess you'd use GetActorReference. Link to comment Share on other sites More sharing options...
Recommended Posts