khamseen Posted November 1, 2015 Share Posted November 1, 2015 Hi all, first post on here. Been lurking for a while. Does anybody know how you'd go about getting the inventory of a storage container, such as a crate or bin etc, when right clicked? I can get player inventory easily with the player:getInventory() call or variations thereof, but I'm not sure how to apply that to a world object rather than the player. In case it's relevant, I'm basically trying to put together a simple script to let us destroy all items in a crate (delete them from the game) when certain conditions are met. I know how to go about that if I pick up all of the items into my character inventory, but that is time consuming so I'd like to avoid it. I just can't seem to find any references to getInventory() calling for non player storage. Thanks for any pointers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now