2021-10-05 22:15:58 +00:00
Scriptname _00E_MQ13c_CompanionFailsaveSC extends ObjectReference
; An ugly, but hopefully effective script that simply ports the player's companion to him in case he is not in the same cell. Also, it updates the stage if it is below
; 55 (which it should never be at this point.)
Event OnTriggerEnter(ObjectReference akActionRef)
If !bDone && akActionRef == PlayerREF
bDone = True
2024-01-10 14:08:24 +00:00
If MQ13c.GetCurrentStageID() < 55
MQ13c.SetCurrentStageID(55)
2021-10-05 22:15:58 +00:00
EndIf
If MQ13c.akCompanionRomance.GetParentCell() != PlayerREF.GetParentCell()
MQ13c.akCompanionRomance.MoveTo(PlayerREF)
EndIf
EndIf
EndEvent
bool bDone
_00E_MQ13c_Functions Property MQ13c Auto
Actor Property PlayerREF Auto