Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Combat Aim_Detection  

Aim_Detection

This script detects who's aiming at you with mouselook

Category: Combat
By : Unrevoked Clarity
Created: 2010-12-27 Edited: 2010-12-27
Worlds: Second Life

the Zip file

Download all files for Aim_Detection
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Aim_Detection_1.lsl
1 //This script was designed by Han Shuffle
2 //Cleaned up a bit by another resident.
3 //Cleaned up some more by another resident.
4
5 default
6 {
8 {
9 llSetText("", <1.0, 1.0, 1.0>, 1.0);
10 llSensorRepeat("", "", AGENT, 90, PI, 0.1);
11 }
13 {
14 integer i;
15 list sweep;
16 for (i=0;i<n;++i)
17 {
18 if(llGetAgentInfo(llDetectedKey(i)) & AGENT_MOUSELOOK)
19 {
21 sweep += llDetectedName(i);
22 }
23 if(i == n-1)
24 llSetText(llDumpList2String( sweep, "\n"), <1.0, 1.0, 1.0>, 1.0);
25 }
26 }
27 }

Back to the Best Free Tools in Second Life and OpenSim.