Anyone have any ideas for how to get the hold an object is located in? The method I came up with was to figure out which Location the ObjectReference was in and then pass it as an argument to IsSameLocation with the LocTypeHold keyword and each of the nine hold locations, in turn.
Unfortunately, it seems that most/many wilderness cells aren't associated with any location, so this method doesn't work. Unless you are in a town.