diff options
author | Tedd Hansen | 2007-08-17 21:24:38 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-17 21:24:38 +0000 |
commit | fcf7db72728174a628e62ae9d98a3c0090217728 (patch) | |
tree | 2eb9138fd0c0cfb46aa44c74cb8cda75fce40f92 /bin/ScriptEngines/Default.lsl | |
parent | Removed RAIL test from startup for now... (diff) | |
download | opensim-SC_OLD-fcf7db72728174a628e62ae9d98a3c0090217728.zip opensim-SC_OLD-fcf7db72728174a628e62ae9d98a3c0090217728.tar.gz opensim-SC_OLD-fcf7db72728174a628e62ae9d98a3c0090217728.tar.bz2 opensim-SC_OLD-fcf7db72728174a628e62ae9d98a3c0090217728.tar.xz |
Pimped up Default.lsl. Now featuring a touch counter.
Changed "ObjectID" in ScriptEngine to IScriptHost reference. Events will now be queued based on IScriptHost reference instead of string ID of object. Removed "root" object reference in script.
Diffstat (limited to 'bin/ScriptEngines/Default.lsl')
-rw-r--r-- | bin/ScriptEngines/Default.lsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/ScriptEngines/Default.lsl b/bin/ScriptEngines/Default.lsl index 13c6803..6e362f8 100644 --- a/bin/ScriptEngines/Default.lsl +++ b/bin/ScriptEngines/Default.lsl | |||
@@ -1,3 +1,4 @@ | |||
1 | integer touch_count = 0; | ||
1 | default { | 2 | default { |
2 | state_entry() | 3 | state_entry() |
3 | { | 4 | { |
@@ -6,6 +7,7 @@ default { | |||
6 | 7 | ||
7 | touch_start(integer total_number) | 8 | touch_start(integer total_number) |
8 | { | 9 | { |
9 | llSay(0, "Object was touched."); | 10 | touch_count++; |
11 | llSay(0, "Object was touched. Touch count: " + touch_count); | ||
10 | } | 12 | } |
11 | } | 13 | } |