Difference between revisions of "User:Gordon Wendt/testbed"
Jump to navigation
Jump to search
Gordon Wendt (talk | contribs) (→Online/offline watcher: update) |
Gordon Wendt (talk | contribs) (adding a new new script test and tagging didferent sections) |
||
Line 12: | Line 12: | ||
__TOC__ | __TOC__ | ||
== 01 == | |||
float range = 32; | |||
string zombieName = "Zombie"; | |||
default { | |||
state_entry() { | |||
llSensorRepeat(zombieName,"",SCRIPTED,range,PI,15); | |||
} | |||
// Sensor for anything matching 'zombie' | |||
sensor (int number) { | |||
integer i; | |||
for(i=0; i < number; i++) { | |||
vector angle = llVecNorm(llDetectedPos(i) - llGetPos() + llDetectedVel(i)); | |||
llRezObject("largebullet",llGetPos() + (angle*3),angle*64,zero_rotation,0); | |||
} | |||
} | |||
} | |||
== 10 == | |||
<lsl> | <lsl> |
Revision as of 21:29, 16 June 2009