Added the tree scripts, w/ comments
[ProgettoPaperellaDiGomma.git] / envirtechFruitAddition.lsl
blob88099b7571fd4a4b4455195bc4d43308f949e744
1 //currently broken, will be restored asap.
2 //WARNING: broken, don't use it now
4 //dedicated to Mealea, thanks for the passion you put into things and for being able to pass it on to me :)
6 string FRUIT_NAME = "Food (A) ";
7 string PREDATOR = "Creature (B) - R05.22";
10 default
13 on_rez(integer param)
15 llSetObjectName( FRUIT_NAME + llGetObjectName() );
16 llSetStatus(STATUS_PHYSICS, TRUE);
17 llSetStatus(STATUS_PHANTOM, FALSE);
18 //make it float and don't collide with the ground... maybe...
19 llSetBuoyancy(1.0);
25 collision_start(integer numberDetected)
27 integer i = 0;
29 for( ; i < numberDetected; i++ )
31 if( llDetectedName(i) == PREDATOR )
33 llDie();