Hello Avatar/fr

From Second Life Wiki
< Hello Avatar
Revision as of 18:53, 22 November 2008 by Zai Lynch (talk | contribs) (storing translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>