Skip to content
lsl.devlsl.devLSL Dev

llGetLinkSitFlags

function
Function syntax
integer llGetLinkSitFlags(
  1. integer link// Link number (1 for root, >1 for children) or a LINK_* flag. Values: Link
);
Returns
integer
Energy
10

Returns an integer representing the active sit flags currently set on the linked prim specified by link.

Returns the current flags on the link’s sittarget.

How to use
integer result = llGetLinkSitFlags(0);

The return value is a set of flags describing the flags of this prim’s sit targets.

FlagDescription
SIT_FLAG_SIT_TARGETRead-only flag to indicate whether the link has a sit target. Use llSitTarget, llLinkSitTarget, or PRIM_SIT_TARGET to disable or enable this flag. Use llGetLinkSitFlags, or llGetLinkPrimitiveParams with PRIM_SIT_FLAGS to read this flag.
SIT_FLAG_ALLOW_UNSITAllow an avatar to manually unsit from a sit target. Only applies to agents who had been seated via an LSL script. See llSitOnLink.
SIT_FLAG_SCRIPTED_ONLYOnly allow scripted sits on this sit target.
SIT_FLAG_NO_COLLIDEDisable the avatar’s collision volume when they are seated on this sit target.
SIT_FLAG_NO_DAMAGEDo not distribute damage to agents sitting on this sit target.
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.