enderalse/source/scripts/_00e_fs_nqr04_tharaelaitrigger.psc

16 lines
693 B
Plaintext

scriptname _00E_FS_NQR04_TharaelAITrigger extends ObjectReference
{This script makes sure that Tharael is no longer allied to the player if they decide to leave}
Event OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer() && FS_NQR04.GetCurrentStageID() >= 30 && FS_NQR04.GetCurrentStageID() < 35
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_FS_NQR04_TharaelREF, True, 550, 500, 100)
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
If akActionRef == Game.GetPlayer()
_00E_Func_SetNPCAsCompanion.SetNPCAsCompanion(_00E_FS_NQR04_TharaelREF, false)
EndIf
EndEvent
Actor Property _00E_FS_NQR04_TharaelREF Auto
Quest Property FS_NQR04 Auto