Advertisement
gribbleshnibit8

Get objects of given type from all mods - NVSE

Sep 25th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. ; some control loop to only get items of specific types
  3.  
  4. GetLoadedType EmptyTypeList <Type> ; gets objects of type http://www.gribbleshnibit.com/projects/NVSEDocs/#Form_Type_IDs
  5.  
  6. let ar_Items := ListToArray EmptyTypeList
  7. While ((i+=1) < 255) ; loop through every load index
  8. ForEach ar_element <- ar_Items
  9. if eval (GetSourceModIndex ar_element["value"] == i)
  10. someContainerRef.AddItem ar_element["value"] <amount>
  11. endif
  12. Loop
  13. Loop
  14. ; end some control loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement