Hello, I'm starting my first script; It's supposed to be a barrier that only allows people in a list access. The idea is that it goes phantom when they are allowed, and turns red and physical when they're not. list access = ["Parack Resident"];
default
{
collision_start(integer total_number)
{
if (access);
{
llSetStatus(STATUS_PHANTOM, TRUE);
llPlaySound("7053d699-0b55-2892-80da-b63aa1b6fc5d", 1.5);
}
if(llGetTime() < 5.0)
{
llResetScript();
}
else
{
llWhisper(0,"No Access");
}
}
collision_end(integer total_number)
{
llSetColor(<1.0,1.0,1.0>, ALL_SIDES);
}
} When I was first doing the script I noticed that the collision was repeating, so I played a timer on it to halt the repitition. When I'm testing the script and I collide with it, it goes phantom and I get the "No access" message. Is there any chance that someone could help me get this script working?