Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
640 B
26 lines
640 B
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 |