aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/ScriptEngines
diff options
context:
space:
mode:
authorTedd Hansen2007-08-17 21:24:38 +0000
committerTedd Hansen2007-08-17 21:24:38 +0000
commitfcf7db72728174a628e62ae9d98a3c0090217728 (patch)
tree2eb9138fd0c0cfb46aa44c74cb8cda75fce40f92 /bin/ScriptEngines
parentRemoved RAIL test from startup for now... (diff)
downloadopensim-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')
-rw-r--r--bin/ScriptEngines/Default.lsl4
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 @@
1integer touch_count = 0;
1default { 2default {
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}