Skip to content

Suggestion: object GetObjectContainer(object oObject)

ForSeriousForSerious Member Posts: 471
Some other naming ideas:
object GetContainingObject(object oObject)
int IsObjectInContainer(object oObject)

There should be an easy way to determine if an item is inside a container inside an inventory.
Also, there should be an easy way to get a reference to the container object.
GetItemPossessor() returns the player object of the object it is called on, if called on an item inside a container in the inventory of a player. So, something similar, but not returning the overall container.

Having a function like this could also help fix the bug listed here.
Sign In or Register to comment.