I used llInstantMessage to avoid spamming the other avatars and llTriggerSoundLimited to try to restrict the sound to the wall area.
I was wondering if there is a way to make the wall becoming transparent ONLY for the agent who touches it and not for all the other avatars around.
Thanks a lot for your help
CODE
default
{
touch_start(integer total_number)
{
llSetStatus( STATUS_PHANTOM, TRUE);
llSetAlpha( .7, 1);
llSetTimerEvent( 10.0 );
llInstantMessage (llDetectedKey(0), "You have 10 seconds to walk through the wall or you'll be trapped.");
llTriggerSoundLimited("music", 1.0, llGetPos() + <199,154,98>, llGetPos() - <193,146,99>);
}
timer(){
llSetTimerEvent( .0 );
llSetStatus( STATUS_PHANTOM, FALSE);
llSetAlpha( 1.0, 1 );
state default;
}
}