Talk:GetInventoryItems - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Is This Function Broken?[edit source]

Can anyone please confirm whether this function even works? I tried to use it to get the contents of a simple container item so I could then iterate through them to get item counts as well, but no matter what I tried it always returned an empty array, even if the container was right beside the player character (rather than in some other cell). In the end I had to create a parallel form list which is really inconvenient. Does this function definitely work? If so, under what circumstances? -- Haravikk (talk) 2019-03-05T10:06:42 (EST)

To thebest of my knowledge this function does work correctly. Post your entire script source for further assistance. Scrivener07 (talk) 2019-03-05T14:48:30 (EST)