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.
343 results for “O”
wolfCall commands
Names you give to wolfCall or wolfCallAsync.
Which version of these commands this region runs.
Every command in this list that this region answers.
Your NPCs on this region, or with "all" every NPC here. Rights is "edit" (yours to run), "control" (you may stop it, send it home, animate it, make a dragon breathe) or "none". At most 80 are listed; count is all of them.
STATE is "intention|awake or asleep|alive or dead|health/max". INTENT is what it is doing, EVENTS its running events, CFG all its settings as JSON.
It says the words (up to 1000 characters) in local chat. An NPC speaks at most 5 lines in ten seconds.
It walks to that spot on this region, or to one of its own places (or tools) by name.
It follows an avatar or NPC on this region; "" stops following.
It stops and stands. Its looped animations stop too.
It goes home. With "here", where it stands now becomes its home.
Plays one of the animations in its contents once (the default), keeps it looping, or stops it. [npc, "", "stop"] stops them all.
A dragon breathes fire or ice for 0.5 to 20 seconds (0 or none = 3), the same breath as in its window.
Flashes prims of the script's own object between two colours, and puts their own colours back when it ends. Each colour shows 0.5 to 60 seconds (default 1); it lasts up to 3600 seconds (default 10; 0 = until stopped, at most an hour); face is ALL_SIDES (the default) or a face number. See "Flashing an object" below.
Stops the flash on those prims ([] = the whole object) and puts their own colours back.
The weather on this region now: the condition, temperature, feels-like, humidity, pressure, wind, cloud, rain or snow, thunder, the sun and moon, the place and its local time. See "Weather" below for every name and unit.
The next hours, one row an hour (24 by default; the list holds up to 31 hours, JSON up to 48).
Ready to say: a sentence about now ("It's 8°C in Tromsø with light rain and a fresh westerly wind. Sunset is at 15:42."), the full stats block, or the weather later ("later" = about 6 hours ahead; or 1-48 hours).
Sets the region's weather: clear, fair, cloudy, overcast, rain, storm, snow or fog, or a pattern (settled, changeable, unsettled, stormy, wintry). With minutes (1-1440) it goes back by itself afterwards; with 0 or no minutes it stays until changed. wolfCallAsync only.
Back to the real place's live weather. wolfCallAsync only.
A hurricane forms from the region's own clouds, rages, then dies away back into the region's own weather. Everyone on the region sees it. One at a time. wolfCallAsync only.
It dies away now: after at least a minute at full strength (one still forming finishes forming first), over at most 5 minutes. With "now" it is gone at once.
The storm now: "forming", "mature" or "decaying", and where its eye is (region metres).
The Caribbean only. Puts this ship or shore cannon into battle mode (class, e.g. "frigate_pallas" or "shore_cannon"; an unknown class is refused with the list of known ones), takes it out (it goes off after 60 seconds; firing, or "on" again, cancels that) or reads its state. At most 12 ships and 8 shore cannons in battle mode on the region, and 2 ships and 4 cannons of any one owner. Not for a worn object.
The Caribbean only. A broadside: every loaded gun on "port" or "starboard" fires. Elevation in degrees (default 3, held to each gun's limits); shot "round" (the default), "chain" or "grape" (grape only where the region has player damage); captain = the key of the avatar giving the order, counted only while they sit aboard.
The Caribbean only. One gun fired by its crew. The gunner's key must be sitting on the object; elevation and traverse are held to that gun's limits.
The Caribbean only. Which guns are crewed (a crewed gun reloads in 20 seconds, not 35) and whether the magazine is manned (reloads take a quarter less time). [0] when not in battle mode.
The Caribbean only. The state now, at most twice a second (naval.watch tells you of every change). State is off, on, sinking, sunk:seconds, silenced:seconds or switching_off:seconds; health is "section=now/max,..."; each gun side is "ready/total/seconds" (a shore cannon's guns are in the port place, starboard is "0/0/0").
The Caribbean only. Answers as soon as anything has changed since that sequence number, or after 240 seconds with nothing new. At most 4 scripts watch one ship. wolfCallAsync only.
The Caribbean only. This ship's hits and sinks on others, and the damage it has taken, while in battle mode.
The Caribbean only. A resident's booty (the object's owner when no key is given); rank 0 = not on the board yet. Gold doubloons are game treasure, not WT$ or Wolf Credits. wolfCallAsync only; an object may ask once every 10 seconds, and answers are kept a minute.
The Caribbean only. The Top Pirates (default: the top 10 this season; a season is a calendar quarter). Four fields a pirate after the first three. The same board as wolf-grid.com/top-pirates. wolfCallAsync only, once every 10 seconds an object, kept a minute.
Puts this aircraft into dogfight mode (any region with wolf-air): only aircraft in dogfight mode can fire on each other or be hit; nobody else is ever touched. "custom" is for ANY aircraft: her hit boxes come from her own size; the nose axis is 0 = +X, 1 = -X, 2 = +Y, 3 = -Y of her root; the guns are muzzle positions in her root's frame with a type mg, hmg or cannon (empty: two machine guns in the nose; at most 8). Off takes 30 seconds and firing cancels it. 16 aircraft a region, 3 an owner. State is off, on, switching_off:seconds, down or wreck:seconds.
A burst from that group. Hold the trigger by calling it 4 times a second with 0.25 seconds each (at most 4 a second). The pilot must be sitting in her. Refused in safe airspace near an airport, out of ammunition, or with the guns jammed (a gun jams at 100 % heat and clears at 40 %: fire short bursts).
The state now, at most twice a second (air.watch tells you of every change).
Answers as soon as anything has changed since that sequence number, or after 240 seconds with nothing new. At most 4 scripts watch one aircraft. The last field is the last event, "kind:words" (hit, hit_given, kill, down, wreck, respawn, fire, engine_dead, pilot_hit, rearmed, dogfight_on, switching_off, dogfight_off).
The pilot jumps: stood up and seated on the parachute (an object the aircraft rezzed, described wolfair:parachute, owned by her owner, within 20 m), or just stood up. She is then down: a kill for whoever hit her in the last minute.
She has hit the ground. A crash within a minute of being hit is the attacker's kill ("forced down"). She lies as a wreck for 30 seconds, then respawns at home with full health and ammunition, protected for 20 seconds.
Where she respawns (on this region). Without it: where she was when dogfight mode went on.
This aircraft's score while in dogfight mode.
This region's kill feed (the last 30): answered when someone is shot down after that sequence number. Give -1 for everything kept. At most 16 scripts a region wait on it.
The grid's top aces.
Whether this object is in safe airspace: 800 m round each of the region's airports, up to 300 m above the ground, and any wolfair:safe|radius|height marker the region owner or a manager has put out. Nobody can fire or be hit there.
Practice drones flown by the region: targets fly a circuit and evade; enemies pursue aircraft in dogfight mode and fire short bursts. They only fly while someone is on the region and an aircraft is in dogfight mode, and cost nobody anything (no AI credits: they are rule-based). Also "/74 drones on|off|status" in local chat.
Peaceful air traffic on autopilot passing over the region, with navigation and landing lights at night. Never in a dogfight, never hit. Also "/74 traffic on|off|status" in local chat.
Functions
No description recorded yet.
No description recorded yet.
No description recorded yet.
No description recorded yet.
No description recorded yet.
Creates a notecard with the specified avatar's current appearance inside the object
No description recorded yet.
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
No description recorded yet.
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.
Draws an ellipse on a dynamic texture
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 line on a dynamic texture
Draws a polygon on a dynamic texture
Draws a rectangle on a dynamic texture
No description available yet
No description available yet
No description available yet
Renders text on a dynamic texture
No description available yet
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.
The agent's IP address - only when the script's owner is a grid administrator; "" for everyone else. To recognise returning visitors or alts use wolfGetAgentIPHash.
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.
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.
No description recorded yet.
No description recorded yet.
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.
No description recorded yet.
Filter listen events by regex
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
No description recorded yet.
No description recorded yet.
No description recorded yet.
No description recorded yet.
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
No description recorded yet.
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
No description recorded yet.
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
No description recorded yet.
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.
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)
No description recorded yet.
No description recorded yet.
No description recorded yet.
No description recorded yet.
Replaces a given string
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.
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
No description available yet
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.
Sets avatars health
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.
No description recorded yet.
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.
Apply a shape on the end of a line
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
Sets the project parameters for the given primitive
Set the current region's sun settings
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
No description recorded yet.
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.
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.
Teleports an agent to the specified location
No dedication available 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.
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.