- This function will not work for dynamic objects, or if the object is part of an object or character, or if it is hidden.
- If you cannot be certain that the object is at a location, then you must use the following restriction in the task or an alternate description to ensure that it is.
The initial location of the object is set using two drop-down lists on the description page. The first list sets the "Location of the object" property, and setting this determines which property will be set by the second list. When the "Location of the object" property is set to "Single Location", the "At Location" property will become available. Setting "At Location" determines which location will be returned by the AtLocation function.
How to use
Any of the Location Functions can be appended to the AtLocation function to display a property of the location of an object.
As well as the %object% reference, you can use the key of an object, or any function that returns the key of an object with this function:
- This example obtains the location of the object who's key is Object4, then prints the short location description of that location.
- In a task with an %object% reference, this function first finds the parent (location of) the referenced object. The object must be be in or an another object for the AtLocation function to work. The Objects.List function then lists all of the objects at this location.
|<<< Object Functions||Item functions||InLocation >>>|