default
{
state_entry()
{
llVolumeDetect(TRUE);
}
collision_start(integer num_detected)
{
llSay(0, llDetectedName(0) + ",bienvenid@ a Wiener Lacus"
; llSleep(3);
}
}
BUT still with llSleep, the object repeats the names after the established sleep time. I will like to use "list" and "if", so the object does not greet an avatar more than once (and maybe even say goodbye when he goes out?). This is the code, I know it´s silly, but I get several errors while running it (either syntax or mismatch/scope), I´m not a scripter at all
, this is just intuiton (pretty bad one) and code mixing jeje. I´ll appreciate some help:list names;
default
{
state_entry()
{
llVolumeDetect(TRUE);
}
collision_start(integer num_detected)
{
integer x;
for (x = 0; x < 0; x++)
{
string name = llDetectedName(x);
integer index = llListFindList(names, (name));
if (index == 1)
{
llSay(0, llDetectedName(x) + ", bienvenid@ a Wiener Lacus"
; if (llGetListLength(names) > 20)
{
llDeleteSubList(names, 0, 0);
}
}
}
}
}
name)"