Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

~Simple script, not working properly~

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
05-06-2007 15:48
The collision part works. The problem is the Alpha will not reset..and the ring remains invisible.
From: someone

default
{
state_entry()
{
llTargetOmega(<0,0,1>,1,1);
}

collision_start(integer x)
{
llSetStatus(STATUS_PHANTOM,TRUE);
llSetAlpha(ALL_SIDS,0);
llSetTimerEvent(10);
}
timer()
{
llSetAlpha(ALL_SIDES,1);
llSetStatus(STATUS_PHANTOM,FALSE);
llSetTimerEvent(0);
}
}
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
05-06-2007 16:12
You have llSetAlpha wrong, it's the alpha then sides, not sides then alpha :) so it should look like this:

CODE

default
{
state_entry()
{
llTargetOmega(<0,0,1>,1,1);
}

collision_start(integer x)
{
llSetStatus(STATUS_PHANTOM,TRUE);
llSetAlpha(0, ALL_SIDES);
llSetTimerEvent(10);
}
timer()
{
llSetAlpha(1.0, ALL_SIDES);
llSetStatus(STATUS_PHANTOM,FALSE);
llSetTimerEvent(0);
}
}
Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
05-06-2007 16:13
ah, thanks a lot =-)
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
05-06-2007 16:14
Plus a spelling mistake...