4
Fork 0
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
705 B

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
If MQ13c.GetCurrentStageID() < 55
MQ13c.SetCurrentStageID(55)
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