4
Fork 0
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.
 
 
 

41 lines
885 B

Scriptname _00E_Func_ReferenceFormList Hidden
Function Enable(FormList referenceList) Global
Int nItems = referenceList.GetSize()
Int i = 0
If nItems < 128 && nItems > 1 && SKSE.GetVersion() > 0
Form[] refArray = referenceList.ToArray()
While i < nItems
(refArray[i] as ObjectReference).EnableNoWait()
i += 1
EndWhile
Else
While i < nItems
(referenceList.GetAt(i) as ObjectReference).EnableNoWait()
i += 1
EndWhile
EndIf
EndFunction
Function Disable(FormList referenceList) Global
Int nItems = referenceList.GetSize()
Int i = 0
If nItems < 128 && nItems > 1 && SKSE.GetVersion() > 0
Form[] refArray = referenceList.ToArray()
While i < nItems
(refArray[i] as ObjectReference).DisableNoWait()
i += 1
EndWhile
Else
While i < nItems
(referenceList.GetAt(i) as ObjectReference).DisableNoWait()
i += 1
EndWhile
EndIf
EndFunction