2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_NQG07_MoveDijaamToPlayerSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
if akActionRef == PlayerREF && NQ_G_07Dijaam.IsRunning() && NQ_G_07Dijaam.GetCurrentStageID() < 80 && !bDone
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
bDone = True
|
|
|
|
; fixes issue 1226
|
2024-01-10 14:08:24 +00:00
|
|
|
If NQ_G_07Dijaam.GetCurrentStageID() < 75
|
|
|
|
NQ_G_07Dijaam.SetCurrentStageID(75)
|
2021-10-05 22:15:58 +00:00
|
|
|
Utility.Wait(2)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If _00E_SC_DijaamOnelys.GetParentCell() != PlayerREF.GetParentCell()
|
|
|
|
_00E_SC_DijaamOnelys.MoveTo(PlayerREF)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
bool bDone = false
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
Actor Property _00E_SC_DijaamOnelys Auto
|
|
|
|
_00E_NQ_G_07_Functions Property NQ_G_07Dijaam Auto
|