Phantom On/Off

Written by: Headmaster
//PHANTOM ON OFF by ArchTx Edo 
//Changes and object from solid to phantom and back again each time it is touched 

default 
{ 
    touch_start(integer total_number) 
    {   
            llSetPrimitiveParams([PRIM_PHANTOM, FALSE]); state phantom; 
        } 
} 
state phantom 
{ 
    touch_start(integer total_number) 
    { 
        llSetPrimitiveParams([PRIM_PHANTOM, TRUE]); state default; 
    } 
}