Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Shout script needed

Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
02-25-2009 13:46
I need a script that will shout /1show every x minutes.

Can anyone help me out?
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
02-25-2009 14:01
That's it, Briana?

CODE

default
{
state_entry()
{
llSetTimerEvent(120.0); // Change 120.0 to x.x in seconds
}
timer()
{
llShout(1,"show"); // This shouts "show" on channel 1
llResetScript();
}
}
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
02-25-2009 14:27
Sweet thanks Roliq!
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
02-25-2009 14:47
From: Rolig Loon
That's it, Briana?

CODE

default
{
state_entry()
{
llSetTimerEvent(120.0); // Change 120.0 to x.x in seconds
}
timer()
{
llShout(1,"show"); // This shouts "show" on channel 1
llResetScript();
}
}


THE llResetScript(); line is not needed. The timer event automatically resets itself.