enderalse/source/scripts/_00e_nq23_triggerboxobjectiveupdate.psc

17 lines
583 B
Plaintext
Raw Normal View History

Scriptname _00E_NQ23_TriggerboxObjectiveUpdate extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if (NQ23.GetStage() == 20 || NQ23.GetStage() == 21) && _bDoOnce == false && akActionRef == PlayerREF && NQ23.IsObjectiveDisplayed(_iDisplayedObjective)
NQ23.SetObjectiveCompleted(_iDisplayedObjective, true)
NQ23.SetObjectiveDisplayed(_iObjectiveToActivate, true)
_bDoOnce = true
endif
EndEvent
bool _bDoOnce = false
int Property _iDisplayedObjective Auto
int Property _iObjectiveToActivate Auto
Actor Property PlayerREF Auto
Quest Property NQ23 auto