1 //originally written by Davide Byron
2 //this code is released under the GPLv3
4 // Produces E_TOUCH_ID event
5 // An avatar have touched the creature, the avatar key is passed as the key
7 // the most different actions can be associated with touch, and it should
8 // be considered a good point for the creature, since it was able to attract
9 // a human with it's appearence or behaviour or whatever.
10 // This script notices the touch event, reactions should be specified in other scripts.
12 //dedicated to Mealea, thanks for the passion you put into things and for being able to pass it on to me :)
15 integer E_TOUCH_ID
= 7;
23 touch_start(integer numberTouchers
)
27 for( ; i
< numberTouchers
; i
++)
29 //signal the touch event
30 llMessageLinked(LINK_SET
, E_TOUCH_ID
, "", llDetectedKey(i
));