2021-10-06 00:15:58 +02:00
|
|
|
Scriptname _00E_NQ23_TriggerboxObjectiveUpdate extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 15:08:24 +01:00
|
|
|
if (NQ23.GetCurrentStageID() == 20 || NQ23.GetCurrentStageID() == 21) && _bDoOnce == false && akActionRef == PlayerREF && NQ23.IsObjectiveDisplayed(_iDisplayedObjective)
|
2021-10-06 00:15:58 +02:00
|
|
|
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
|