Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

300 results for “O”

No description recorded yet.

Creates a notecard with the specified avatar's current appearance inside the object

No description recorded yet.

Returns the avatar's key from their first and last name

Plays a given animation on a specified avatar.; No PERMISSION_TRIGGER_ANIMATION check.

Stops playing an animation on a specified avatar

Causes health damage to the specified avatar

Increase health to the specified avatar

Checks if physics engine is legacy ODE and returns 1 ( TRUE ) it is, or 0 ( FALSE ) if not

clears the effect of osSetInertia* functions. Link set total mass, center of mass and inertia will be the values estimated by default from the link set parts.

No description recorded yet.

Sets collision sound to impact_sound with specified volume.

Sends a given console command to the region.; NOTE: There are no security checks with this function. DO NOT USE THIS FUNCTION UNLESS YOU ARE ABSOLUTELY SURE YOU KNOW WHAT YOU ARE DOING.

No description recorded yet.

Deletes an object depending on the target uuid. Note: Only allow osDie() on objects rezzed by the script prim Group (linkset) or on it self.

Appends an FillEllipse drawing command to the string provided in drawList and returns the result. The filled ellipse is drawn with the current pen size and color, with the specified width and height (in pixels), centered on a point which is (width/2) pixels to the right of the pen's current X position, and (height/2) pixels below the pen's current Y position. After the filled ellipse is drawn, the width and height values are added to the pen's X and Y position, respectively.

Draws a polygon on a dynamic texture, and fills it with the current pen color

Draws a rectangle on a dynamic texture, and fills it with the current pen color

Retrieves a specified image and draws it at the specified height and width

Draws a polygon on a dynamic texture

No description available yet

Renders text on a dynamic texture

Drops an attachment

Drops an attachment at a given position and rotation

Eject the specified avatar from the object's current group

Attaches the object to the avatar.; No PERMISSION_ATTACH check.

Attaches given inventory item to the avatar.; No PERMISSION_ATTACH check.

Attaches given inventory item to a specified avatar.; No PERMISSION_ATTACH check.

Identical to llBreakAllLinks() except that it doesn't require the link permission to be granted. Delinks all prims in the link set.

to llBreakLink(integer link) except that it doesn't require the link permission to be granted. Delinks the prim with the given link number in a linked object set.

Idential to llCreateLink() except that it doesn't require the link permission to be granted. Attempt to link the script's object with target.

Detaches the object from the avatar.; No PERMISSION_ATTACH check.

Drops an attachment without a PERMISSION_ATTACH check

Drops an attachment at a given position and rotation without a PERMISSION_ATTACH check

Forces a sit of targeted avatar onto itself or another Prim

Formats the given string using specified parameters

No description recorded yet.

Returns the agent's IP Address

Returns a list of all avatars in the current region

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

Returns the Home URI of an avatar

Returns a list with the keys, position, and name of each avatar in the current region

Returns the value of the current region's sun hour

Returns a vector containing the horizontal and vertical dimensions in pixels of the specified text

Returns a string with one of the following values: 'male', 'female', or 'unknown'. This value is determined by the value selected for the avatar shape in the appearance dialog in the user's viewer. If that value cannot be found for any reason (avatar is not in the region, improperly formatted key, etc.), 'unknown' is returned.

Returns the current grid's GridInfo key

Returns the current grid's Gatekeeper URI as a string.

Returns the current grid's HomeURI

Returns the current grid's LoginURI

Returns the current grid's name

Returns the current grid's nickname

Gets the current automatic healing rate in % per second. Default heal rate is now around 0.5% per second. A value of zero can disable automatic heal, current maximum value is 100 % per second.

Return the target avatar's health

Returns list of Intertia Data

Returns the description of inventory item

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

Returns the link number of the prim or sitting avatar with name 'name' on the link set or -1 if the name is not found.

Returns prim params for the prim specified by link_num

No description recorded yet.

No description recorded yet.

Returns the map texture key for the current region

Returns the full contents of a notecard

Returns a given line in a specified notecard contained in the object

No description recorded yet.

Returns a strided list of the specified attachment points and the number of attachments on those points

Returns the number of lines in a notecard

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

This function returns a string containing the name and version number of the physics engine.

This function returns a string containing the name of the Physics Engine.

No description recorded yet.

Returns the parameters of a primitive, specified by its key

No description recorded yet.

Returns the map texture key for a specified region

Returns size of region in meters as vector

Returns the current region' statistics

Returns the key of the object's parent object

Returns the name of the script engine running on the current region

Returns the memory in use by the current region

Returns the memory in use in KB by the current region

Returns the current simulator version

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

Returns region's current sun parameters.; Param are: day_length, year_length, day_night_offset, update_interval.

Returns the current region's terrain height as a float at the given coordinates

Gets the value of param property for plugin module.; SimpleRandomWind plugin param is: strength.; ConfigurableWind plugin params are: avgStrength, avgDirection, varStrength, varDirection, rateChange.

Invited the specified avatar to the object's current group

No description recorded yet.

Returns 1 if TRUE, 0 if FALSE

Returns 1 if the given string is a valid UUID, 0 if not

Returns the avatar's name from their key

Kicks specified avatar out of the current region

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

Returns the creation date of the current region

Returns the original UUID of the current region

Returns the creation time of the current region

Creates a notecard with contents of list

Returns a list containing the matches from the specified string

Returns the greater of two numbers

Sends a given message to the specified avatar's attachments on the given attachment points

Sends a specified message to an object

Returns the lesser of two numbers

Moves the pen's location to the coordinates specified by the x and y parameters, without drawing anything

key osNpcCreate(string firstname, string lastname, vector position, string clone, integer options); Creates an NPC

Returns the avatar key for the target NPC's owner

Returns current position vector of the target NPC

Returns the rotation of the the target NPC

Load the target NPC's appearance from a notecard

Moves the target NPC to a location within the region

Moves the target NPC to a specified location over a period of time

Plays animation on the target NPC

Removes the NPC specified by key npc

Save the target NPC's current appearance to a notecard in the object's inventory

Target NPC says message on the nearby chat channel

Set about in created NPC's profile.

Set image in created NPC's profile.

Set the rotation of the target NPC

Target NPC shouts message on the nearby chat channel

Makes the target NPC sit on an object

Makes the target NPC stand up

Stops animation being played by the NPC

Stop the target NPC's movement

Makes the target NPC to touch the specified object

Target NPC whispers message on the nearby chat channel

Creates a notecard with the object owner's current appearance inside the object

Joins two adjacent parcels within the same region

No description recorded yet.

Subdivides a parcel into two adjacent parcels within the same region

No description recorded yet.

No description recorded yet.

Returns 1 if the input string matches the regular expression pattern, returns 0 if not

Sends a region notice throughout the current region

Restarts the current region after a specified amount of time (in seconds)

Requests one HTTPS:// url (opensim version 0.9 or over)

Requests one HTTP:// url (opensim version 0.9 or over)

No description recorded yet.

No description recorded yet.

Sets a content return type for a llRequestUrl()

Renders a dynamically created texture on the prim containing the script and returns the UUID of the newly created texture

Renders a web texture on the prim containing the script and returns the UUID of the newly created texture

Set current estate's sun settings

Sets the font to be used by osDrawText

Sets the font size to be used in osDrawText

Sets the automatic healing rate in % per second. Default heal rate is now around 0.5% per second. A value of zero can disable automatic heal, current maximum value is 100 % per second.

Allows creators to set the major physics dynamic proprieties, replacing the values estimated from the linkset parts. Call osClearInertia to undo.

Allows creators to set the link set total mass, center of mass and moment of inertia. Moment of inertia will be the one of a box of size boxSize, placed at the center of mass and rotated by rot in the root prim local frame. Call osClearInertia to undo.

Allows creators to set the link set total mass, center of mass and moment of inertia. Moment of inertia will be the one of a cylinder of radius and length, placed at the center of mass and rotated by rot in the root prim local frame. Call osClearInertia to undo.

Allows creators to set the link set total mass, center of mass and moment of inertia. Moment of inertia will be the one of a sphere of radius radius, placed at the center of mass. Call osClearInertia to undo.

No description recorded yet.

Sets parcel details; PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC, PARCEL_DETAILS_OWNER, PARCEL_DETAILS_GROUP, PARCEL_DETAILS_CLAIMDATE are implemented

Set parcel media to a given url

No description recorded yet.

No description recorded yet.

Sets the pen color to be used when drawing dynamic textures

No description recorded yet.

Sets the line thickness to be used when drawing dynamic textures

Set physical object to float at the given water level

Sets the primitive parameters for the given primitive

Adjusts water height in current region

No description recorded yet.

No description recorded yet.

Modify the speed of movement for the given avatar

No description recorded yet.

Sets the current region's sun parameters.; Param are: day_length, year_length, day_night_offset, update_interval.

Sets the current region's terrain height at the given coordinates

Set the terrain texture for the current region to a given texture

Set the terrain texture height for the current region

Sets value of param property for plugin module.; SimpleRandomWind plugin param is: strength.; ConfigurableWind plugin params are: avgStrength, avgDirection, varStrength, varDirection, rateChange

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

No description recorded yet.

Teleports the owner of the object containing the script to the specified location

No description recorded yet.

Updates terrain changes in the grid's database

No description recorded yet.

No description recorded yet.

Returns unix time as a formatted timestamp

No description recorded yet.

No description recorded yet.

No description recorded yet.

Returns active wind plugin name, specified by "wind_plugin" in OpenSim.ini

Returns the absolute (positive) version of Value.

Returns the arc-cosine of Value, in radians.

Add avatar ID to the parcel ban list for the specified number of Hours.\ A value of 0 for Hours will add the agent indefinitely.\ The smallest value that Hours will accept is 0.01; anything smaller will be seen as 0.\ When values that small are used, it seems the function bans in approximately 30 second increments (Probably 36 second increments, as 0.01 of an hour is 36 seconds).\ Residents teleporting to a parcel where they are banned will be redirected to a neighbouring parcel.

Add avatar ID to the land pass list, for a duration of Hours.

Adjusts the volume (0.0 - 1.0) of the currently playing attached sound.\ This function has no effect on sounds started with llTriggerSound.

Returns TRUE if the agent is in the Experience and the Experience can run in the current location.

If Flag == TRUE, users without object modify permissions can still drop inventory items into the object.

Returns the angle, in radians, between rotations Rot1 and Rot2.

Applies impulse to the object.\ If Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates.\ This function only works on physical objects.

Applies rotational impulse to the object.\ If Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates.\ This function only works on physical objects.

Returns the arc-sine, in radians, of Value.

Returns the arc-tangent2 of y, x.

Attach to avatar at point AttachmentPoint.\ Requires the PERMISSION_ATTACH runtime permission.

Follows the same convention as llAttachToAvatar, with the exception that the object will not create new inventory for the user, and will disappear on detach or disconnect.

If an avatar is sitting on the link's sit target, return the avatar's key, NULL_KEY otherwise.\ Returns a key that is the UUID of the user seated on the specified link's prim.

If an avatar is seated on the sit target, returns the avatar's key, otherwise NULL_KEY.\ This only will detect avatars sitting on sit targets defined with llSitTarget.

Returns the rotation represented by coordinate axes Forward, Left, and Up.

Returns the rotation that is a generated Angle about Axis.

Returns an integer that is the Text, Base64 decoded as a big endian integer.\ Returns zero if Text is longer then 8 characters. If Text contains fewer then 6 characters, the return value is unpredictable.

Converts a Base64 string to a conventional string.\ If the conversion creates any unprintable characters, they are converted to question marks.

De-links all prims in the link set (requires permission PERMISSION_CHANGE_LINKS be set).

De-links the prim with the given link number (requires permission PERMISSION_CHANGE_LINKS be set).

Casts a ray into the physics world from 'start' to 'end' and returns data according to details in Options.\ Reports collision data for intersections with objects.\ Return value: [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, UUID_2, {link_number_2}, hit_position_2, {hit_normal_2}, ... , status_code] where {} indicates optional data.

Returns smallest integer value >= Value.

No description recorded yet.

Resets all camera parameters to default values and turns off scripted camera control.

Clears (deletes) the media and all parameters from the given Face on the linked prim.\ Returns an integer that is a STATUS_* flag, which details the success/failure of the operation.

Clears (deletes) the media and all parameters from the given Face.\ Returns an integer that is a STATUS_* flag which details the success/failure of the operation.

Closes the specified XML-RPC channel.

Returns the cloud density at the object's position + Offset.

Specify an empty string or NULL_KEY for Accept, to not filter on the corresponding parameter.

Suppress default collision sounds, replace default impact sounds with ImpactSound.\ The ImpactSound must be in the object inventory.\ Supply an empty string to suppress collision sounds.

Suppress default collision sprites, replace default impact sprite with ImpactSprite; found in the object inventory (empty string to just suppress).

No description recorded yet.

Returns the cosine of Theta (Theta in radians).

Starts an asychronous transaction to create a key-value pair. Will fail with XP_ERROR_STORAGE_EXCEPTION if the key already exists. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is a two element commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the value passed to the function.

Attempt to link the object the script is in, to target (requires permission PERMISSION_CHANGE_LINKS be set).\ Requires permission PERMISSION_CHANGE_LINKS be set.

Create a list from a string of comma separated values specified in Text.

Starts an asychronous transaction the request the used and total amount of data allocated for the Experience. The dataserver callback will be executed with the key returned from this call and a string describing the result. The result is commma-delimited list. The first item is an integer specifying if the transaction succeeded (1) or not (0). In the failure case, the second item will be an integer corresponding to one of the XP_ERROR_... constants. In the success case the second item will be the the amount in use and the third item will be the total available.