@getpath[:<option>]=<channel> replies with the shared-folder path (relative to #RLV) of a worn item. With no option it reports the folder the issuing attachment was worn from. If several items match the option, only the first one's folder is reported; use @getpathnew to get all of them.

Syntax

@getpath=<channel>
@getpath:<layer|attachpt|uuid>=<channel>

Parameters

option
Interpreted in this order:
  1. a wearable layer name (shirt, skin, …): all items worn on that layer;
  2. an attachment point name (case-insensitive): all attachments on that point;
  3. a UUID: a specific attachment, which must be found in the world, be an attachment and be owned by the user, otherwise the option is invalid;
  4. empty: the issuing object, if it is an attachment.
Anything else (a folder path, attachment group, number, other text) is an invalid option.

Return value

A path such as Toys/Cuffs/Wrist, or an empty string if the item is not inside #RLV, nothing matched, or the option was invalid. When an item lives in a folded folder (e.g. .(spine)) the path of its parent is given.

Caveats

Examples

// Where was I worn from? Lock that folder
llOwnerSay("@getpath=7012");
// ... in listen(): llOwnerSay("@detachallthis:" + msg + "=n");

Implementation notes

See also

Comparison with RLV

No significant differences from RLV's @getpath.