Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
m
imported>JustinOther
imported>JustinOther
Line 129: Line 129:


Int iIndex
Int iIndex
ObjectReference akReference
ObjectReference Reference
FormList Property ListOfObjectsFLST Auto ; see notes after script for more info on this property
FormList Property ListOfObjectsFLST Auto ; see notes after script for more info on this property


Line 137: Line 137:
While(iIndex > 0)
While(iIndex > 0)
iIndex -= 1
iIndex -= 1
akReference = ListOfObjectsFLST.GetAt(iIndex) as ObjectReference ; Note that you must typecast the entry from the formlist using 'As'.
Reference = ListOfObjectsFLST.GetAt(iIndex) as ObjectReference ; Note that you must typecast the entry from the formlist using 'As'.
If akReference.IsEnabled()
If Reference.IsEnabled()
akReference.Disable()
Reference.Disable()
Else ; If akReference.IsDisabled()  
Else ; If Reference.IsDisabled()  
akReference.Enable()
Reference.Enable()
EndIf
EndIf
EndWhile
EndWhile
Anonymous user

Navigation menu