• Sign in to follow this  

    Scripting object behavior


    How to make an object do something

    Linden Scripting Language, also referred to as LSL, is a programming language that allows you to add interactive behavior to any object in Second Life. For example, you can make fire, rain, or snow with particles, doors that open when you click them, lights that move or flash different colors — you can even create an entire game. Learning how to write scripts opens up countless creative possibilities, enabling you to bring your objects to life and make them interactive.

    A script is a list of instructions that are to be executed in the order they are written. Since these instructions are performed by a computer, they must be written in a specific format and grammar (called a syntax). Learning a scripting or programming language for the first time can be a daunting task; however, if you've used other programming or scripting languages, you should be able to grasp LSL quickly.

    How to make a temporary object

    Temporary objects are automatically deleted after a short time. This is great for any short-term object you don't intend to keep. Examples include bullets from guns, physics experiments, or test scripts that involve motion or might otherwise get away from you. To make an object temporary:

    1. Right-click the object and choose Edit. Or press Ctrl-3 and click on the object.
    2. Open the Object tab. Click More if you don't see it.
    3. Select the checkbox next to Temporary.
    32px-KBnote.png Note: Temporary objects don't count toward your land object or prim limits.

    Where to find scripting help

    See our LSL (Linden Scripting Language) Portal, which contains links to helpful resources, including the Resident-run LSL Wiki.

    The LSL Wiki is being actively expanded by Residents as a repository for scripting documentation, since any Resident can edit the Second Life Wiki. So if you've got help to give, you're welcome to share your knowledge.

    Also, see the Scripting and Scripting Library forums (there are Scripting Tips and Scripting Library archives too, for contributions before February 2010).

    Be sure to check the Event Calendar inworld for scripting classes hosted by knowledgeable Residents!

    Sign in to follow this  


    User Feedback


    There are no comments to display.