Hello Avatar/fr

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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>