Difference between revisions of "Bethesda Tutorial Papyrus Events and Properties"
Bethesda Tutorial Papyrus Events and Properties (edit)
Revision as of 21:41, 11 February 2012
, 21:41, 11 February 2012→Debugging the Resurrection
imported>Frenchfrog |
imported>Frenchfrog |
||
Line 190: | Line 190: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
scriptName LokirsDraugrResurrection extends Actor | |||
{This Script lives on the dead minion draugr in Lokir's Tomb. It handles their resurrection} | |||
Spell property reanimateSpell Auto ; this is the special self-resurrection spell to use | |||
objectReference property myTrigger auto ; This is the reference we are waiting on to send an activate | |||
Event OnActivate(ObjectReference akActionRef) | |||
; I've been activated - see if was my trigger | ; I've been activated - see if was my trigger | ||
if (akActionRef == myTrigger) | if (akActionRef == myTrigger) | ||
; Cast a Reanimate spell on the Draugr | |||
reanimateSpell.Cast(Self, Self) | |||
EndIf | EndIf | ||
EndEvent | |||
</source> | </source> | ||