2021-10-06 00:15:58 +02:00
|
|
|
Scriptname _00E_Complex_BlockIdleChatterSC extends ObjectReference
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if akActionRef == PlayerREF
|
2024-01-10 15:08:24 +01:00
|
|
|
if (__Config_QuestToSet.GetCurrentStageID() >= 5) && (__Config_QuestToSet.GetCurrentStageID() < __Config_iMaxStage)
|
2024-01-09 23:00:18 +01:00
|
|
|
AllowIdleChatter.SetValue(0)
|
2021-10-06 00:15:58 +02:00
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
|
|
|
|
if akActionRef == PlayerREF
|
|
|
|
|
2024-01-09 23:00:18 +01:00
|
|
|
AllowIdleChatter.SetValue(1)
|
2021-10-06 00:15:58 +02: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 23:00:18 +01:00
|
|
|
GlobalVariable Property AllowIdleChatter Auto
|