|
tucor Capalini
Registered User
Join date: 18 Jun 2007
Posts: 44
|
04-27-2008 09:32
Ive done some looking around and I cant seem to find what I'm looking for.
I am attempting to make a prim goe from shape A to shape B using llSetPrimParams.... The best I can come up with so far is ....llSetPrimParam [stuf A], llSleep, llSetPrimParam [stuff B], llResetScript. Im thinking there has GOT to be a better way. If anyone could point me in the right direction I would surely appreciate it! (And yes, I will stop calling you Shirley)
Tuc
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
04-27-2008 09:43
Sounds like you need to set a timer...here is some rough, untested pseudo-code. There are a lot of working examples around.
default { state_entry() { llSetTimer( .2 ); //every 2/10 seconcd, set off an alarm }
timer() { // every 2/10 second, a timer event will arrive. This event handler will process it
...do whatever you need to do for the next step in your process. }
}
The basic idea is absolutely crucial to scripts. They do not actually run in most cases. Instead, they sit around and wait for things to happen, and then they react to that event. That is, they wait to be touched, or sat on, or talked to, or for arrow keys to be typed, or for timers to go off, and then they react to that.
_____________________
So many monkeys, so little Shakespeare.
|