Hello Avatar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{LSL Header|ml=*}} | {{LSL Header|ml=*}} | ||
Le script suivant contient le code par défaut placé dans tout nouveau script. Il dit "Hello, Avatar!" (bonjour avatar)quand il est sauvegardé ou réinitialisé, il dit également "''Touched.''" (touché)quand l'objet qui le contient est touché. Cela en fait la représentation LSL du célèbre [http://en.wikipedia.org/wiki/Hello_world_program Hello world program]. | |||
<lsl> | <lsl> | ||
default | default | ||
Revision as of 18:42, 22 November 2008
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Le script suivant contient le code par défaut placé dans tout nouveau script. Il dit "Hello, Avatar!" (bonjour avatar)quand il est sauvegardé ou réinitialisé, il dit également "Touched." (touché)quand l'objet qui le contient est touché. Cela en fait la représentation LSL du célèbre Hello world program. <lsl> default {
state_entry()
{
llSay(0, "Hello, Avatar!");
}
touch_start(integer total_number)
{
llSay(0, "Touched.");
}
} </lsl>