Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Counting how often touched?

Martin Morris
Registered User
Join date: 5 Jan 2006
Posts: 4
09-02-2006 14:25
Please help me:

I would need a script that does the following:
touched once do this
touched twice do that
and so on

it tried adding elements to lists, timestamps nothing worked ;((
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
09-02-2006 15:06
CODE
integer coutner = 0;
default
{
touch_start(integer n)
{
counter++;// increment the coutner
if (counter == 1) { // do this }
if (counter == 2) { // do this }
}
}
_____________________
Martin Morris
Registered User
Join date: 5 Jan 2006
Posts: 4
Thank you!
09-03-2006 02:50
I really should learn the scripting basics, opens a new world to me :))