Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
3 years ago
|
Scriptname _00E_ModifyWeatherComplexSC extends ObjectReference
|
||
|
|
||
|
;=====================================================================================
|
||
|
; EVENTS
|
||
|
;=====================================================================================
|
||
|
|
||
|
Event OnTriggerEnter (ObjectReference akActionREF)
|
||
|
|
||
|
if akActionREF == PlayerREF
|
||
|
|
||
|
if (QuestToSet.GetStage() >= iMinStage) && (QuestToSet.GetStage() <= iMaxStage)
|
||
|
|
||
|
if bForceActive
|
||
|
WeatherToSet.ForceActive(True)
|
||
|
else
|
||
|
WeatherToSet.SetActive(True)
|
||
|
endif
|
||
|
|
||
|
EndIf
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnTriggerLeave (ObjectReference akActionREF)
|
||
|
|
||
|
if akActionREF == PlayerREF
|
||
|
Weather.ReleaseOverride()
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
bool Property bForceActive = false Auto
|
||
|
|
||
|
int Property iMinStage Auto
|
||
|
int Property iMaxStage Auto
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
|
||
|
Weather Property WeatherToSet Auto
|
||
|
Quest Property QuestToSet Auto
|