Difference between revisions of "Talk:GetContainer"
imported>JOG (Yes, it works with NPCs and Creatures) |
imported>Mitchalek |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
Does this work properly if the "container" is an NPC? --[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 03:24, 29 May 2006 (EDT) | Does this work properly if the "container" is an NPC? --[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 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.[[User:Decoup|Decoup]] 05:03, 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.[[User:Decoup|Decoup]] 05:03, 29 May 2006 (EDT) | ||
:Of course it does. See examples here [[Variable_types:_reference_variables]]--[[User:JOG|JOG]] 11:07, 29 May 2006 (EDT) | ::Of course it does. See examples here [[Variable_types:_reference_variables]]--[[User:JOG|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. | |||
--[[User:Fore|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.[[User:Mitchalek|Mitchalek]] |
Latest revision as of 15:02, 3 November 2011
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