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.
This commit is contained in:
Tedd Hansen
2007-08-17 21:24:38 +00:00
parent 577fb1a987
commit fcf7db7272
11 changed files with 32 additions and 25 deletions

View File

@@ -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);
}
}