|
Ansel Gasparini
Explorer
Join date: 25 May 2006
Posts: 19
|
07-03-2006 16:50
I'm trying to make a teleport button that actually works, that is, is animated to push in/out. I've got the animation working, but seem to have run into a roadblock.
If I set the sit target on the object immediately, I teleport before seeing the button move. I've also tried having the default state when touched play the animation, then enter a state which sets the sit target. This doesn't work either, as the "sit" event has already happened by the time the sittarget is assigned.
Any ideas?
Thanks.
|
|
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
|
07-03-2006 17:09
Try sleeping the script for the duration of the animation.
|
|
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
|
07-03-2006 17:39
I would have them sit on an invisible prim, which would stop the 'sit' animation and start a standing one. When they press the button it would send a message on a private channel with coordinates to WarpPos to.
|
|
Azzura Supplee
Safety Girl
Join date: 16 Jun 2006
Posts: 29
|
07-31-2006 17:56
Im after delaying the teleport also - it just isnt happening.... Its like it ignores my whole script and goes right for the teleport. Ignoring llSleeps and all!
anyone have a way to delay the teleport so people can view the events before?
thanks
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
07-31-2006 18:06
From: Ansel Gasparini If I set the sit target on the object immediately, I teleport before seeing the button move. If your teleport is done with SitTarget trick then it sounds normal. When avatar sits on your prim, they are placed in SitTarget point automatically and that point is destination point of your "teleport". You can't delay it, and adjusting sit target after AV is already attached does nothing -- changes to sit target position are only taken into account when someone sits on the prim after change(s) was made. The possible work around would be what's been suggested above -- have the avatar sit on a prim which can move itself to destination using something like warpPos and unsit them at destination, instead of sit target trick. Then you can have this 'taxi prim' both trigger the button animation, and wait with movement until it's completed. o.O;
|