16 lines
659 B
Plaintext
16 lines
659 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.GetStage() >= 30 && FS_NQR04.GetStage() < 35
|
||
|
_00E_QuestFunctions.SetNPCAsCompanion(_00E_FS_NQR04_TharaelREF, True, 550, 500, 100)
|
||
|
EndIf
|
||
|
EndEvent
|
||
|
|
||
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
||
|
If akActionRef == Game.GetPlayer()
|
||
|
_00E_QuestFunctions.SetNPCAsCompanion(_00E_FS_NQR04_TharaelREF, false)
|
||
|
EndIf
|
||
|
EndEvent
|
||
|
|
||
|
Actor Property _00E_FS_NQR04_TharaelREF Auto
|
||
|
Quest Property FS_NQR04 Auto
|