A C D F L S T

Damage

On land parcels with the damage option enabled, avatars can be damaged and killed (which simply teleports them to their home location, similar to llTeleportAgentHome). The current health of an avatar is displayed in the menu bar (only when over damage-enabled land)...

Functions

Functions Defined A function can be thought of as a machine into which input is provided, and which returns output. By using functions, the same blocks of code can be used over and over again, simply by referencing them. LSL and OSSL come with hundreds of built-in...

llAttachToAvatar

llAttachToAvatar(integer attachment) Attaches the scripted object at the specified attachment point to the avatar it has PERMISSION_ATTACH for. Even though users other than the owner can grant this permission, attaching to them will fail with the message “Script...

llAvatarOnSitTarget

key llAvatarOnSitTarget() If an avatar is sitting on the sit target, this function will return the avatar’s key; NULL_KEY otherwise. This will only detect avatars sitting on sit targets defined with llSitTarget. At some point prior to SL 1.6.5, it would apparently...

llClearCameraParams

llClearCameraParams() Resets all camera parameters to default values and turns off scripted camera control. Requires llRequestPermissions(key agent, PERMISSION_CONTROL_CAMERA). The agent (avatar camera) this function targets is the agent that gave...

llDetachFromAvatar

llDetachFromAvatar() Detaches the scripted object from the avatar it’s attached to. Requires PERMISSION_ATTACH (via llRequestPermissions). After detaching, the attach() event hander is called with the value NULL_KEY. Calling this function from a child-prim will fail...