2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_Complex_BlockIdleChatterSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if akActionRef == PlayerREF
|
2024-01-10 14:08:24 +00:00
|
|
|
if (__Config_QuestToSet.GetCurrentStageID() >= 5) && (__Config_QuestToSet.GetCurrentStageID() < __Config_iMaxStage)
|
2024-01-09 22:00:18 +00:00
|
|
|
AllowIdleChatter.SetValue(0)
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if akActionRef == PlayerREF
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
AllowIdleChatter.SetValue(1)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
int Property __Config_iMinStage Auto
|
|
|
|
int Property __Config_iMaxStage Auto
|
|
|
|
|
|
|
|
Quest Property __Config_QuestToSet Auto
|
|
|
|
|
2024-01-09 22:00:18 +00:00
|
|
|
GlobalVariable Property AllowIdleChatter Auto
|