Archivo de la categoría: SL Scripting guide

09 – Steering the Vehicle

Much like the linear motor, there is also an angular motor that is always on, and whose direction and magnitude can be set. For example, to make a vehicle turn at 5 degrees/sec around it’s local z-axis (its up-axis) you … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

08 – Vehicles

Vehicles are a new feature now available for use through LSL. This chapter will cover the basics of how vehicles work, the terms used when describing vehicles, and a more thorough examination of the api available. There are several ways … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

07 – Lists, Communication and Inventory

Lists 8.1. Tables of Functions Table 8-1. List Functions   Function llCSV2List llDeleteSubList llGetListEntryType llGetListLength llList2CSV llList2Float llList2Integer llList2Key llList2List llList2ListStrided llList2Rot llList2String llList2Vector llListFindList llListInsertList llListRandomize llListSort llParseString2List   Communication 9.1. Tables of Functions Table 9-1. InWorld Functions Table … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

06 – Math and Strings

6.1. Tables of Functions Table 6-1. Trigonometry Functions Table 6-2. Rotation Functions Function llAbs llAcos llAsin llAtan2 llCeil llCos llFabs llFloor llFrand llPow llRound llSin llSqrt llTan Table 6-3. Vector Functions Function llVecDist llVecMag llVecNorm Function llAngleBetween llAxes2Rot llAxisAngle2Rot llEuler2Rot … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

05 – States

All scripts must have a ’default’ state, which is the first state entered when the script starts. States contain event handlers that are triggered by the LSL virtual machine. All states must supply at least one event handler – it’s … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

04 – Flow Control

but the most basic scripts will require some kind of flow contol. LSL comes with a complete complement of constructs meant to deal with conditional processing, looping, as well as simply jumping to a different point in the script. 4.1. … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

03 – Basics

Now that we have seen a very simple script in action, we need to look at the our toolchest for writing scripts. The next set of tools we will consider are the basic building blocks for programming a script, and … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

02 – Getting Started

You’re probably wondering what you can do with LSL, and how quickly you can do it. We’ll start with some simple examples, disect them, and introduce you the the script development process while we’re at it. 2.1. Hello Avatar Continuing … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario

01 – Introduction

The Linden Scripting Language (LSL) is a simple, powerful language used to attach behaviors to the objects found in Second Life. It follows the familiar syntax of a c/Java style language, with an implicit state machine for every script. Multiple … Sigue leyendo

Publicado en SL Scripting guide | Deja un comentario