mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user