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
Weapons Zombieprim  

Zombieprim

Zombieprim

Category: Weapons
By : Nitsuj Kidd
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Zombieprim
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Zombieprim_1.lsl
1 //Zombie-prim
2 //By TSL Resident: Nitsuj Kidd
3 string target = "Put an avatars name here";
4 integer up = 5;
5 integer force = 2;
6 default
7 {
9 {
10 llListen(0,"",llGetOwner(),"");
11 llListen(2,"",llGetOwner(),"");
12 llSensorRepeat("","",AGENT,30,TWO_PI,2);
13 }
14 listen(integer chan, string name, key id, string msg)
15 {
16 if(llToLower(llGetSubString(msg,0,llStringLength("attack")))=="attack ")
17 {
18 target = llToLower(llDeleteSubString(msg,0,llStringLength("attack")));
19 llOwnerSay("Target set to " + target);
20 }
21 else if(llToLower(llGetSubString(msg,0,llStringLength("force")))=="force ")
22 {
23 force = (integer)llDeleteSubString(msg,0,llStringLength("force"));
24 llOwnerSay("Target set to " + (string)force);
25 }
26 }
27 sensor(integer num)
28 {
29 integer i;
30 for(i=0; i<num; i++)
31 {
33 {
34 llApplyImpulse(((llDetectedPos(i)-llGetPos())*force)+<0,0,up>,FALSE);
35 }
36 }
37 }
38 }

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