If the script is owned by an agent, PERMISSION_RETURN_OBJECTS may be granted by the owner. If the script is owned by a group, this permission may be granted by an agent belonging to the group's "Owners" role.

Syntax

integer llReturnObjectsByOwner( key owner, integer scope );

Forced delay: 0.0 seconds.

Parameters

key owner
avatar or group UUID
integer scope
OBJECT_RETURN_* flag

To run this function the script must request the PERMISSION_RETURN_OBJECTS permission with llRequestPermissions.

If the return value is negative, it represents an error flag.

Return value

Returns an integer that is the number of objects successfully returned to their owners or an ERR_* flag.

Specification

Throttle

Throttled at max parcel land impact capacity region-wide per hour.

Constants

scope FlagDescription
OBJECT_RETURN_PARCELReturn all objects on the same parcel as the script which are owned by owner.
The script must be owned by an estate manager or over a parcel owned by the owner of the script.
OBJECT_RETURN_PARCEL_OWNERReturn all objects owned by owner which are over parcels owned by the owner of the script.
OBJECT_RETURN_REGIONReturn all objects in the region owned by owner.
The script must be owned by the estate owner or an estate manager.
Error FlagsDescription
ERR_GENERIC-1A nebulous and inexplicable error, nothing is known about it.
ERR_PARCEL_PERMISSIONS-2Permission lacked to perform task on specified parcel.
ERR_MALFORMED_PARAMS-3Parameters are malformed.
ERR_RUNTIME_PERMISSIONS-4Script lacks the runtime permission to perform the requested task.
ERR_THROTTLED-5Task has been throttled. Try again later.

Caveats

Permissions

Notes

For group-owned land you may want to explicitly code a group owner's key into the script as there is no way to determine if a user is a group owner.

See also

Events

Functions

Articles

Deep notes

Issues

History

Date of Release 18/06/2013