User:Jorgy Freschi/Corsi/LSL

From Second Life Wiki
Jump to navigation Jump to search

Corso LSL

<lsl> // // LSL Corso di script string Version = "LSL - Stati v.1.0.0"; // costante key kToucher = NULL_KEY;

// Funzione init init() { // …corpo della funzione } default { state_entry() { llSay(0, "Hello, Avatar!"); } touch_start(integer total_number) { llSay(0, "Touched: " + (string)total_number); state acceso; } }

state acceso { state_entry() { } } </lsl>