I am below you,
|
|
Galls Cain
Registered User
Join date: 26 Apr 2005
Posts: 18
|
02-04-2006 20:22
I am below all the scripters of sl, I admit that.
So this is why I call on those who are better than me to help me in my crusade to make something cool.
What i need is a tp system for my ship, and since it is a multimove sandbox ship. So for the tp system to work with a multimove ship it needs some kinds of comunication between the tp spots to update tp cordinates.
Usually i would never ask online for help with creating a script, I would go and take advantage of the genious coder friend down the street from me, but he hasnt played in a while.
So I go to you, who are those better than me, to help us multimove abusers.
|
|
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
|
02-04-2006 21:29
You could make a target prim with a timer set at 5 secs or so for example and make that prim llSay it's position in the timer and then update the sit target to that pos. If you want to avoid timers you could make a prim below the teleporter, like on the floor, with a collission detector that would llSay a request for the position of the target prim when an avatar steps on it, the target prim could llSay it's position and you'd have to update the sit target in the listen event, same as above.
|
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
02-04-2006 21:53
You can just use a sittarget call with an offset local to the prim you sit on and then use unsit to make yourself get off the sittarget at the correct place, like a standard tp unit, or did i misread?
|
|
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
|
02-04-2006 21:56
From: Cid Jacobs You can just use a sittarget call with an offset local to the prim you sit on and then use unsit to make yourself get off the sittarget at the correct place, like a standard tp unit, or did i misread? You didn't go at all you evil thing! I mean.. Good luck with your scripting..
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.--------------- Zapoteth Designs, Temotu (100,50)--------------- 
|
|
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
|
02-04-2006 22:06
From: Cid Jacobs You can just use a sittarget call with an offset local to the prim you sit on and then use unsit to make yourself get off the sittarget at the correct place, like a standard tp unit, or did i misread? I guessed the multimove thing meant the teleporters were moving relative to each other or something like that, but maybe not. At least that's the only situation I imagine it would be necessary to have communication between the tp spots.
|
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
02-04-2006 22:17
From: Zepp Zaftig I guessed the multimove thing meant the teleporters were moving relative to each other or something like that, but maybe not. At least that's the only situation I imagine it would be necessary to have communication between the tp spots. I thought all the communication was handled by the multimove script already, maybe the OP could clarify a bit more 
|
|
Galls Cain
Registered User
Join date: 26 Apr 2005
Posts: 18
|
02-04-2006 23:22
what my need is, is a ship tp system that can work with a moving multi object ship.
Meaning: That as the ship moves the X,Y,Z cordinates of the different tp to spots gets automatically updated at the different teleporters throughout the ship.
The best way i figure to do this is to put a broadcaster into the tp scripts that on some remote distant channel announces its position.
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
02-05-2006 02:48
Do the points of the tp spots change relative to each other?
The standard tp script uses a sit-hack which is an offset vector, where do I move from *here* so if the ship and the tp spots stay in place it should work just fine - as Cid said.
If they do move relative to each other, then chatting on some out of the way channel is your best (nay only) bet.
|
|
Siobhan Taylor
Nemesis
Join date: 13 Aug 2003
Posts: 5,476
|
02-05-2006 02:56
Using the offset as suggested will work fine... UNTIL you change direction, then you need to recalculate the vectors.
As long as you know the distance between points, and the angle you've rotated through though, it shouldn't be all *that* hard to do.
_____________________
http://siobhantaylor.wordpress.com/
|
|
Jesrad Seraph
Nonsense
Join date: 11 Dec 2004
Posts: 1,463
|
02-05-2006 03:33
From: Zepp Zaftig I guessed the multimove thing meant the teleporters were moving relative to each other or something like that, but maybe not. At least that's the only situation I imagine it would be necessary to have communication between the tp spots. The prims DO NOT move relative to each other, that's the whole point of multimove  You don't need to update the teleport vectors if you use sitting as TP method.
_____________________
Either Man can enjoy universal freedom, or Man cannot. If it is possible then everyone can act freely if they don't stop anyone else from doing same. If it is not possible, then conflict will arise anyway so punch those that try to stop you. In conclusion the only strategy that wins in all cases is that of doing what you want against all adversity, as long as you respect that right in others.
|