Can this be scripted? More actually to the point, can it be scripted that a person is in the vecinity of an object and then collor it, minus yourself? (else its constant red)
I am just thinking out loud here .. but any feedback would be appriciated

These forums are CLOSED. Please visit the new forums HERE
Is this possable? |
|
|
Dorvalla Cao
Registered User
Join date: 11 Jun 2008
Posts: 4
|
05-09-2009 15:20
I wanna make a little detector tool. Now the deal is, (anybody maybe familair with the splinter cell series) is when nobody is near you, a little object should collor green, now i was thinking when somebody is in a range of 10 meters, it should collor yellow, and when a person is in a 1 meter radius, it should collor red.
Can this be scripted? More actually to the point, can it be scripted that a person is in the vecinity of an object and then collor it, minus yourself? (else its constant red) I am just thinking out loud here .. but any feedback would be appriciated ![]() |
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
05-09-2009 16:18
I think you're talking about my Otter Monitor.
![]() Yes, you can do that. You want to use llSensorRepeat with a modest timer (say 1s), and in the sensor event you use llVecDist() to compare your position (llGetPos()) with their position (llDetectedKey(0)), and then call llSetColor() based on the result of llVecDist(). llSensor() never detects yourself. _____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |
|
Dorvalla Cao
Registered User
Join date: 11 Jun 2008
Posts: 4
|
05-09-2009 16:41
Thank you very much for your input. I am gonna play arround, also i ll hop by your store see what your tool is about
thanks |