// Phantom door LSL script #1 // Handles the touch event. // Processing for the script when it first starts up default { // What we do when we first enter this state state_entry() { state closed; // Move to the closed state } } // Processing for the script when it is in the closed state state closed { // What we do when we first enter this state state_entry() { llSetStatus(STATUS_PHANTOM,FALSE); // Turn off phantom property } // What we do when the door is clicked ("touched") with the mouse touch_start(integer total_number) { state open; // Move to the open state } } // Processing for the script when it is in the open state state open { // What we do when we first enter this state state_entry() { llSetStatus(STATUS_PHANTOM,TRUE); // Turn on phantom property } // What we do when the door is clicked ("touched") with the mouse touch_start(integer total_number) { state closed; // Move to the closed state } }