|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
10-20-2005 14:23
I'm running into an interesting sensor area problem...the attached picture will be able to explain better than even 1000 words.
Essentially running an llSensor event in order to open a door...and door is basically at 10 x 10 x 5 cylinder...
I've got the problem 85% fixed...but cant' seem to restrict the sensor to the right portion of the cylinder...help?
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
10-20-2005 14:25
I've figured so far:
llSensorRepeat("", NULL_KEY, AGENT, 10, PI/2, 1);
It's the PI/2 that I need to fix...('cause it senses through a full 1/2 of the cylinder instead of only 1/4th) but even after playin' for quite a while, can't figure out what might work? It's not PI/4, 'cause that takes the wrong 4th...
|
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
10-20-2005 15:25
Instead of a sensor, use an invisible prim that detects things that goes through it with a call to llVolumeDetect(TRUE) (and then passes it to the cylinder by chat on a private channel, for example). This way the script becomes entirely passive, and runs only when needed instead of continually calling one of the most resource-hungry function of all LSL 
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
10-20-2005 16:14
Heyyyyy...now that's a good idea. Thanks man.
Got it workin'...nice.
|