Difference between revisions of "Hello Avatar"
Jump to navigation
Jump to search
(Undo revision 150653 by Coxigrue Bimbogami (Talk) stored it at Hello Avatar/fr) |
|||
Line 1: | Line 1: | ||
{{LSL Header|ml=*}} | {{LSL Header|ml=*}} | ||
The following script contains the default code that is placed in every new script. It says "''Hello, Avatar''" when it is saved or reset and says "''Touched.''" when it is touched. That makes it the LSL representation of the famous [http://en.wikipedia.org/wiki/Hello_world_program Hello world program]. | |||
<lsl> | <lsl> | ||
default | default |
Revision as of 17:54, 22 November 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
The following script contains the default code that is placed in every new script. It says "Hello, Avatar" when it is saved or reset and says "Touched." when it is touched. That makes it the LSL representation of the famous Hello world program. <lsl> default {
state_entry() { llSay(0, "Hello, Avatar!"); }
touch_start(integer total_number) { llSay(0, "Touched."); }
} </lsl>