Difference between revisions of "Category:LSL Integer/link"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Found it! That reference wasn't appearing anywhere — that's because it's a Footnote, *not* a reference!)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LSL Subtype Category|link|alt={{Do|link_number}}|base=integer|cat=Link|description=|inject={{}}|values=
{{LSL Subtype Category|link|alt={{Do|link_number}}|base=integer|cat=Link|description=|inject={{LSL Function/link|link}}|values=
{{LSL_Constants/Link}}
{{LSL_Constants/Link}}
==== Notes ====
==== Notes ====
* Not all LINK_* flags can be used with all functions or constants.
* Not all <code>LINK_*</code> flags can be used with all functions or constants.
* The only LINK_* flag that shows up with [[linked_message]] is [[LINK_ROOT]]
* The only <code>LINK_*</code> flag that shows up with [[linked_message]] is [[LINK_ROOT]]. There is no way to know if a message has been sent to a specific prim or to all prims in the linkset.
}}
}}
==== Footnotes ====
{{Footnotes}}

Latest revision as of 05:56, 4 May 2024

link is a subtype of integer.

The functions and constants in this category all take or return a link parameter. Events in this category expose a link parameter. Alternate names for link include: link_number

Values

link values are often one of the following special values:

Flag Description
LINK_ROOT 1 sends to the root prim in a multi-prim linked set[1]
LINK_SET -1 sends to all prims
LINK_ALL_OTHERS -2 sends to all other prims
Flag Description
LINK_ALL_CHILDREN -3 sends to all children, (everything but the root)
LINK_THIS -4 sends to the prim the script is in

Notes

  • Not all LINK_* flags can be used with all functions or constants.
  • The only LINK_* flag that shows up with linked_message is LINK_ROOT. There is no way to know if a message has been sent to a specific prim or to all prims in the linkset.

Footnotes

  1. ^ LINK_ROOT does not work on single prim objects. Unless there is an avatar sitting on the object.