2019-01-04 20:26:26 +01:00
|
|
|
default{touch(integer n){
|
|
|
|
|
|
|
|
|
|
if (llSameGroup(llGetOwner()) && llDetectedGroup(0)) llDie();
|
|
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
|
// llGetEnergy() has min=0 and max=1, therefore (integer)llGetEnergy() is bool,
|
2019-01-06 23:49:33 +01:00
|
|
|
// however we don't handle it yet (needs min and max applied to expressions).
|
2019-01-04 20:26:26 +01:00
|
|
|
if ((integer)llGetEnergy() && llSameGroup(llGetOwner())) llDie();
|
|
|
|
|
|
2019-01-06 23:49:33 +01:00
|
|
|
// Check that min and max work as they should. This is always true.
|
|
|
|
|
if (llGetNumberOfPrims()) llDie();
|
|
|
|
|
|
2019-01-04 20:26:26 +01:00
|
|
|
}}
|