diff options
author | Adam Frisby | 2007-07-11 08:02:47 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-11 08:02:47 +0000 |
commit | 5c7ffdde0b9642a42e8f5987e06eb01220ff7776 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /bin/script1.txt | |
parent | Who would have known that the only way of specifying utf-8 without preamble, ... (diff) | |
download | opensim-SC-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.zip opensim-SC-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.tar.gz opensim-SC-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.tar.bz2 opensim-SC-5c7ffdde0b9642a42e8f5987e06eb01220ff7776.tar.xz |
* Wiping trunk in prep for Sugilite
Diffstat (limited to '')
-rw-r--r-- | bin/script1.txt | 34 |
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 | ||