A Welcome Mat

Copy and paste the script:-

string previously_Welcomed;
default
{
touch_start(integer total_number)
{
llSetTimerEvent(30);
}
collision(integer numDetected)
{
if(llDetectedName(0) != previously_Welcomed)
{
previously_Welcomed=llDetectedName(0);
llSay(0,"Welcome " + llDetectedName(0));
}
}
timer()
{
previously_Welcomed = "";
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s