enderalse/source/scripts/_00e_mq13c_companionfailsavesc.psc

26 lines
705 B
Plaintext

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