Difference between revisions of "Talk:HasBeenPickedUp"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Moses
imported>Qazaaq
(answering)
 
Line 1: Line 1:
==HasBeenPickedUp vs GetContainer==
Is item.HasBeenPickedUp == 1 faster than item.GetContainer == 0 ? They both serve the same purpose in slightly different ways. One should be faster though.
Is item.HasBeenPickedUp == 1 faster than item.GetContainer == 0 ? They both serve the same purpose in slightly different ways. One should be faster though.


--[[User:Moses|Moses]] 15:21, 8 May 2010 (EDT)
--[[User:Moses|Moses]] 15:21, 8 May 2010 (EDT)
:My guess is that HasBeenPickedUp can only run on references and GetContainer can only run on inventory objects. I think a reference can still exist for a few frames even though it has been activated and should be placed inside a container. This function can be used to detect this. Note that I haven't tested this. To get a definitive answer you could ask in the OBSE thread on the forums.
:--[[User:Qazaaq|Qazaaq]] 04:29, 9 May 2010 (EDT)

Latest revision as of 03:29, 9 May 2010

HasBeenPickedUp vs GetContainer[edit source]

Is item.HasBeenPickedUp == 1 faster than item.GetContainer == 0 ? They both serve the same purpose in slightly different ways. One should be faster though.

--Moses 15:21, 8 May 2010 (EDT)

My guess is that HasBeenPickedUp can only run on references and GetContainer can only run on inventory objects. I think a reference can still exist for a few frames even though it has been activated and should be placed inside a container. This function can be used to detect this. Note that I haven't tested this. To get a definitive answer you could ask in the OBSE thread on the forums.
--Qazaaq 04:29, 9 May 2010 (EDT)