Functions
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 comes with over 310 built-in
functions that allow
scripts and
objects to interact with their
environment. All of the built-in functions start with "
ll" -- those are lower-case 'L's, for "
Linden Library".
The
user can define functions (even with
return values) as long as the
name does not conflict with a reserved word, a built-in
constant, or a built-in function.
Example
This example calls the
llSay function which is used to send
chat text to the specified
channel.
llSay(0, "Hello world!");
Note: As
SL has matured, several functions have been
deprecated. Be sure to use the correct function since
deprecated functions are unreliable and may be removed completely at a future date.
Categorical
Alphabetical
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
User-Defined Functions |
Events |
Functions and Parameters only