Difference between revisions of "RemoveAllItems - ObjectReference"

m
→‎Examples: Notes about calling this on objects that aren't loaded, and the function deleted all items if akTransferTo is in a different cell.
imported>RobinHood70
(Undo revision 28038 by Cwalton (talk))
 
imported>Goggle
m (→‎Examples: Notes about calling this on objects that aren't loaded, and the function deleted all items if akTransferTo is in a different cell.)
Line 29: Line 29:
Game.GetPlayer().RemoveAllItems(abKeepOwnership = true)
Game.GetPlayer().RemoveAllItems(abKeepOwnership = true)
</source>
</source>
== Notes ==
*The calling object and akTransferTo must be loaded.
*If akTransferTo is in a different cell from the calling object, this function will still remove all items, but they are not transferred to the new container. They will be deleted instead.


== See Also ==
== See Also ==
Anonymous user