Projects » SIM greeter (triggered by AV collision)

Insert script inside a prim, make it invisible and rez it where visitors arrive (TP point ,for instance).
PS. Don`t make prim phantom otherwise script won`t work.
Added by: Jimmy Olsen
Last Update: 4 years ago
Project Category: Utilities
👍 2 like

Code

File name Added By Last Updated Actions
SIM greeter on collision Jimmy Olsen 4 years ago View


Comments

I have tried both options and although the script is shown in green and no error appears, no greets snif
like(0)
I keep getting a syntax error on this when I paste it into the "new script" of the prim.
like(0)
Try this:

string previously_Welcomed;
default
{
collision_start(integer total_number)
{
llSetTimerEvent(30);
}
collision(integer numDetected)
{
if(llDetectedName(0) != previously_Welcomed)
{
previously_Welcomed=llDetectedName(0);
llSay(0,"Welcome to Wicked Waves, " + llDetectedName(0));
}
}
timer()
{
previously_Welcomed = "";
}
}// END //
like(1)
Thank you very kindly. :D
like(0)