|
Loki Fool
Registered User
Join date: 31 Aug 2004
Posts: 29
|
05-26-2007 12:38
Hi.
I know very little of scripting.
I am making a build that requires a prim to move up and down slowly then repeat.
I assume this would be a really simple thing to do but have had no luck getting help with this.
Can anyone tell me where I may find or create such a script?
Any help is greatly appreciated.
Thanks.
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
something like...
05-26-2007 13:10
[pre]
vector here; vector there; float interval; integer going = 1;
default { state_entry() { here = llGetPos(); there = here + < 0,0, 2>; interval = 4; llSetTimerEvent(interval); llMoveToTarget( here, interval); } timer() { vector next; if( going ) next = there; else next = here; llMoveToTarget(next, interval ); going = !going; }
} [/pre]
|
|
Gareee Taov
Registered User
Join date: 8 Jan 2007
Posts: 117
|
07-26-2007 20:08
Hmm just tried this, and nothing happened at all. Imade a simple flating chair to sit in on the water on my beach, but need something like this so it looks like it's floating up and down with the water.
|
|
Ed Gobo
ed44's alt
Join date: 20 Jun 2006
Posts: 220
|
07-26-2007 22:09
That script requires your object to be physical but you'll suffer other interactions. Use getPos and setPos for non-physical objects.
|