Scriptname aHH0CaveChaurusTriggerScript extends ObjectReference  

Actor Property playerref Auto ; Least 'costly' way to refer to the player
Quest property aHH0 auto
Objectreference property aHH0CaveEndTriggerREF auto
 
Event OnTriggerEnter(ObjectReference akActionRef)
	If akActionRef == PlayerREF ; This condition ensures that only the player will trigger this code
		If aHH0.getstage() == 310
			aHH0.setstage(320)
			aHH0CaveEndTriggerREF.enable()
		ElseIf aHH0.getstage() <= 300
			aHH0ChaurusCaveREF.enable()
			debug.notification("An horror found me !")
		EndIf
	EndIf
EndEvent

Actor Property aHH0ChaurusCaveREF  Auto  
