Difference between revisions of "Talk:HasBeenPickedUp"
Jump to navigation
Jump to search
imported>Moses (New page: Is item.HasBeenPickedUp == 1 faster than item.GetContainer == 0 ? They both serve the same purpose is slightly different ways. One should be faster though. --~~~~) |
imported>Qazaaq (answering) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
Is item.HasBeenPickedUp == 1 faster than item.GetContainer == 0 ? They both serve the same purpose | ==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. | |||
--[[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)