26 lines
640 B
Plaintext
26 lines
640 B
Plaintext
Scriptname _00E_NQG07_MoveDijaamToPlayerSC extends ObjectReference
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
if akActionRef == PlayerREF && NQ_G_07Dijaam.IsRunning() && NQ_G_07Dijaam.GetStage() < 80 && !bDone
|
|
|
|
bDone = True
|
|
; fixes issue 1226
|
|
If NQ_G_07Dijaam.GetStage() < 75
|
|
NQ_G_07Dijaam.SetStage(75)
|
|
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 |