|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
06-23-2009 19:27
I found a script on the lslwiki, but it's not what I exactly need. I would need it to tell me the x,y,z on seperate lines instead of as a string like it does now. here is teh stock script from the wiki // say location when touched default { touch_start(integer num_detected) { llSay(0, "I'm at " + (string)llGetPos()); } }
_____________________
GoodBye Forums we will miss you ~moe 2-2-2010~
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
06-23-2009 20:03
the pos is made of of three elements, just print those elements.
default { touch_start(integer num) { vector pos = llGetPos(); llSay(0, "X is: " + (string) pos.x); llSay(0, "Y is: " + (string) pos.y); llSay(0, "Z is: + + (string) pos.z); } }
|
|
bigmoe Whitfield
I>3 Foxes
Join date: 29 Jul 2007
Posts: 459
|
06-23-2009 20:11
From: Lazink Maeterlinck the pos is made of of three elements, just print those elements.
default { touch_start(integer num) { vector pos = llGetPos(); llSay(0, "X is: " + (string) pos.x); llSay(0, "Y is: " + (string) pos.y); llSay(0, "Z is: + + (string) pos.z); } }
Thank you so much, Ive been beating my head up over it because I could not for the life of me think of how to do it and it's simple. so thank you thank you.
_____________________
GoodBye Forums we will miss you ~moe 2-2-2010~
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
06-23-2009 22:41
From: bigmoe Whitfield Thank you so much, Ive been beating my head up over it because I could not for the life of me think of how to do it and it's simple. so thank you thank you. always make sure you identify you data lines as lazink did (X is)... because sometimes the viewer receives chat out of order... scripts don't have to worry about this because the server queues them correctly, but the viewers for some reason are a little more fuzzy....
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|