GetBlockingObject

GetBlockingObject (object)

Returns the object which is preventing the player from reaching the specified object.

If an object is in ScopeVisible but not in ScopeReachable, then it may be inside a container where the player can see it but not reach it. You can call the GetBlockingObject function to find out what is “blocking” the player from reaching the object. It will be the top-most parent which the player cannot reach through.