by Brayla Sana | Jun 16, 2017 | LSL, OSSL, Types, Wiki
A string is a sequence of characters limited in length only by available memory. Strings are enclosed in quotation marks (“). LSL uses UTF-8 for its encoding standard for strings. Example: string foo = “bar”; // this defines a string named...
by Brayla Sana | Jan 31, 2019 | Agent and Avatar, Functions, LSL, OSSL, Wiki
In the metaverse, a teleport allows users to move from one region/sim to another without crossing a sim boundary or moving within a sim. By default, users are able to teleport directly to any coordinate within the grid. To...
by Brayla Sana | Jan 23, 2017 | LSL, OSSL, Types, Wiki
Variables, function parameters, and return values have types. This means that a value stored in a variable, bound to a function parameter, or returned by a function must be of the same type, or it must be converted to the same type. LSL provides a set of seven basic...
by Brayla Sana | Jan 22, 2017 | LSL, Operators, OSSL, Wiki
Unary operators take one argument. In LSL these arguments are normally integers. Operator Type Meaning Return Value Effect variable++ Arithmetic post-increment variable variable is set to variable + 1 ++variable Arithmetic pre-increment variable + 1 variable is set to...
by Brayla Sana | Jun 16, 2017 | LSL, OSSL, Types, Wiki
A variable is an identifier or name of a place to store information in a script. The process of creating a variable is called “variable declaration”, “declaring a variable” or “defining a variable”. A variable always has a type...
by Brayla Sana | Jan 23, 2017 | LSL, OSSL, Types, Wiki
A vector is 3 float values used together as a single item–usually representing a direction or magnitude. In LSL and OSSL, vector literals are formatted as <x,y,z>. A vector can be used to represent a 3-dimensional position, direction, velocity, force,...