Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Phantom to Solid

Nyara Squeegee
Registered User
Join date: 2 Jan 2006
Posts: 30
06-23-2006 09:32
Is there a way to script something so it changes from a phantom state to a solid state when clicked?
_____________________
DJ Nyara
Techno is my second life!
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
06-23-2006 09:36
llSetStatus can set whether something is phantom or not, and you use llGetStatus to find out what it currently is.
CODE
default
{
touch_start(integer n)
{
llSetStatus(STATUS_PHANTOM, !llGetStatus(STATUS_PHANTOM));
}
}

will flip something's phantom status when touched.
Nyara Squeegee
Registered User
Join date: 2 Jan 2006
Posts: 30
06-23-2006 09:41
Woot!! Thank you so much!!
_____________________
DJ Nyara
Techno is my second life!