|
Jet Eldrich
Registered User
Join date: 19 Feb 2006
Posts: 11
|
08-26-2006 03:32
Hello, once again, to all you genious scriptosrs out there. Ive been searching around for a bit after I was introduced to the warpPos and MoveToTarget functions of LSL. I essentially grasp the concept of how the functions work but there is still one problem I havent been able to solve.
In reference to a script my SL Father gave me, it was a teleportation script I use in my airship, and its pretty good, I can speak the coordinates I want my airship to move to within the same sim, and even do cross sim traversing. All I really need to know is how can I have the MoveToTarget/warpPos to accept any spoken coordinates without having to have have a list of predesignated coordinates with the script itself? Ive tried to ask my SL Father but he's not cooperating at all.
Thank you for all your help in advance.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-26-2006 04:53
Err...with a listen? Perhaps you could explain in more detail the specific issue you are having with getting this to work....
|
|
Jet Eldrich
Registered User
Join date: 19 Feb 2006
Posts: 11
|
08-26-2006 16:02
Yeah, sorry for not being more specific. Ok the way the script was set up is this, it listens (Im assuming), on channel 15 for the XYZ coordinates and with the formating involved in the script the commands are written out like this: /15 (X number,Y number,Znumber)*(Sim name), for example /15 128,128,50*Morris. I dont know how it does this unless I can view the script but I cant do so. Thanks again for any help you may be able to provide.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-26-2006 18:17
Right. So 'llListen()' to set up the listener, a 'listen' event handler to hear them, some parsing, generally with 'llParseString2List()' and maybe 'llCSV2List()', and then a call to 'warpPos()'. The inter-sim traversal is not that easy, but if you search around a little on this and the Scripting Library forums you will find that some people have compiled sim-to-map-position mappings and algorithms to walk paths between them.
Good luck!
|
|
Jet Eldrich
Registered User
Join date: 19 Feb 2006
Posts: 11
|
08-28-2006 10:01
Thanks for the info, I'll be sure to try and figure it out somehow.
|