enderalse/source/scripts/_00e_fs_nqr04_tharaelaitrigger.psc

16 lines
693 B
Plaintext
Raw Permalink Normal View History

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)
2024-01-10 14:08:24 +00:00
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