Talk:GetContainer

There are no discussions on this page.

What does this return in the case that the object has no container? 0? -1? --MaXiMiUS 23:53, 30 April 2006 (EDT)

I believe it will return a Ref == 0 --Tegid 08:21, 1 May 2006 (EDT)

Does this work properly if the "container" is an NPC? --Dragoon Wraith TALK 03:24, 29 May 2006 (EDT)

I am not home atm but this would be a very useful piece of information. Someone has to research this command properly. It could be a very powerful command in some mods.Decoup 05:03, 29 May 2006 (EDT)
Of course it does. See examples here Variable_types:_reference_variables--JOG 11:07, 29 May 2006 (EDT)

I had the situation that GetContainer returned 0 when I added an item to an NPC that had already left the player area. Low level processing was on. --Fore 17:38, 8 August 2010 (EDT)

This function will return 0 for few frames when loading the game in some situations (usually if you load same game two times in a row) even if the scripted item is in container. Best way is to check world position coordinates along with GetContainer returning 0. If all x, y and z coords returned by GetPos are 0 at the same time it suggests that something is wrong.Mitchalek

Return to "GetContainer" page.