|
Mille Allen
Registered User
Join date: 1 Jun 2007
Posts: 25
|
12-30-2008 14:58
default {
state_entry() { llSensorRepeat(" ", NULL_KEY, AGENT, 1, PI, 1); } sensor(integer total_number) {
llSetColor(<1.0,0,0>,ALL_SIDES);
} }
what do i do to get this to change the color once the avatar lives ?
|
|
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
|
12-30-2008 15:31
First of all, 1 mtr is not much. Calculate the centre of the agent and the centre of the object. Try 3 mtr??? Second... the first parameter should be "" (no space). Third... change the color back to white <1,1,1> when no one is around: no_sensor() { llSetColor(<1.0,1,1>,ALL_SIDES); } That should do it!!!
|
|
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
|
12-30-2008 18:20
Ahhhhh... seeing Lennard's answer i now understand the question and i can stop pondering the existential issue of whether an avatar lives or not which was bothering me since i read the original post 
_____________________
http://slurl.com/secondlife/Together
|
|
Mille Allen
Registered User
Join date: 1 Jun 2007
Posts: 25
|
12-30-2008 18:26
default {
state_entry() { llSensorRepeat("", NULL_KEY, AGENT, 1, PI, 1); } sensor(integer total_number) {
llSetColor(<1,1,1>,ALL_SIDES);
} no_sensor() { llSetColor(<1.0,1,1>,ALL_SIDES); }
}
|
|
Ron Khondji
Entirely unlike.
Join date: 6 Jan 2007
Posts: 224
|
12-30-2008 22:24
Since vectors are made up of floats <1,1,1> is the same as <1.0,1,1>. I'm guessing it's just a typo though. See: 
|
|
Lennard Lopez
Registered User
Join date: 9 Oct 2007
Posts: 52
|
12-31-2008 00:01
A typo? No a copy/paste  . But isn't it better (faster) to use <1.0,1.0,1.0> insteadf <1,1,1>. I read something like that sometime agoo.
|