From fcf7db72728174a628e62ae9d98a3c0090217728 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Fri, 17 Aug 2007 21:24:38 +0000 Subject: 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. --- bin/ScriptEngines/Default.lsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/ScriptEngines') 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 @@ +integer touch_count = 0; default { state_entry() { @@ -6,6 +7,7 @@ default { touch_start(integer total_number) { - llSay(0, "Object was touched."); + touch_count++; + llSay(0, "Object was touched. Touch count: " + touch_count); } } -- cgit v1.1