Scriptname TEG_DemonsEye03script extends Quest  

Actor Property Target01  Auto  
ObjectReference Property Marker01  Auto  
int doonce01
Quest Property DM04  Auto  

Function tegdremora()
RegisterForUpdate(5)
SetObjectiveDisplayed(10)
SetCurrentStageID(10)  
Marker01.Enable()
endfunction

Event OnUpdate()
if (Target01.IsDead() == 1) && (doonce01 != 1)
SetObjectiveCompleted(10)
SetObjectiveDisplayed(20)
SetCurrentStageID(20) 
UnregisterForUpdate()
doonce01 = 1
Endif
EndEvent

Function cleanup()
Marker01.Disable()
SetObjectiveCompleted(20)
SetCurrentStageID(30) 
CompleteQuest()
DM04.Start()
endfunction

