DESCRIPTION¶
Returns an array with all environments object obj is in. If obj is omitted, the environments of the current object is returned.
If obj has no environment, or if obj is destructed, 0 is returned.
USAGE¶
If obj is a match in a matchbox which is in a box in a chest, in a room, all_environment(obj) will return ({ matchbox, box, chest, room }).
HISTORY¶
- introduced (3.2.6) – suggested by Tubmud.