aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/script1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/script1.txt')
-rw-r--r--bin/script1.txt34
1 files changed, 0 insertions, 34 deletions
diff --git a/bin/script1.txt b/bin/script1.txt
deleted file mode 100644
index 63780c2..0000000
--- a/bin/script1.txt
+++ /dev/null
@@ -1,34 +0,0 @@
1<Script><ScriptEngine:OpenSimJVM,Test1>public class Test1 {
2
3 public static void OnFrame()
4 {
5 int own = 0;
6 own = OpenSimAPI.GetEntityID();
7 int avid = OpenSimAPI.GetRandomAvatarID();
8 float x = OpenSimAPI.GetEntityPositionX(own);
9 float avx = OpenSimAPI.GetEntityPositionX(avid);
10 float y = OpenSimAPI.GetEntityPositionY(own);
11 float avy = OpenSimAPI.GetEntityPositionY(avid);
12
13 if(x> avx)
14 {
15 x = x -1f;
16 }
17 else
18 {
19 x = x+ 1f;
20 }
21
22 if(y > avy)
23 {
24 y= y -1f;
25 }
26 else
27 {
28 y = y +1f;
29 }
30
31 OpenSimAPI.SetEntityPosition(own, x, y, 0);
32 }
33
34}</Script> \ No newline at end of file