View Full Version : Use one item on another, both inside BPs
gledsonrt
01-26-2016, 02:12 AM
Hey guys!
I was wondering if there's a way to use one item on another, when both of them are inside the same backpack.
IE. if I wanted to use a pick on a shiny stone.
Thanks!
gledsonrt
01-26-2016, 02:48 AM
Nevermind, found it!
--- Uses item in the container on another item in a container.
-- Uses an item in a specific spot in the container on a specific spot in a specific container.
-- Class Container
-- param spotfrom the specific slot the item to be used is at
-- param contto the container index you want to use the item in
-- param spotto the specific slot you want to use the item with in the new container
-- @return boolean true or false
function Container:UseItemWithContainerItem(spotfrom, contto, spotto)
self = type(self) == 'table' and self or Container.New(self)
return containerUseWithContainer(self._index, spotfrom, contto, spotto)
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.