|
Aries Redgrave
Registered User
Join date: 28 Jun 2007
Posts: 5
|
07-05-2007 09:10
Been trying to figure this out and I have yet to get it right. =/
Basically I have one script sending a message. Only thing is, it sends it as a string. So I can't take that string and stick it into my vector variable.
I'm assuming I need to convert the string into a vector then stick it into the variable.
Anyone has any ideas on how this is done right?
|
|
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
|
07-05-2007 09:20
read this page on the lsl wiki: http://rpgstats.com/wiki/index.php?title=Vectoryou should be able to cast directly between string and vector, something like this. vector myvector = <0,0,0>; string mystringvector = (string)myvector; //converted vector to string ... some messaging magic occurs, you recieve a string called message string myrecieved_string = message; // "<0,0,0>" vector mynewvector = (vector)myrecieved_string; //converted string to vector
|
|
Aries Redgrave
Registered User
Join date: 28 Jun 2007
Posts: 5
|
07-05-2007 09:42
oh wow it worked.. O.o
It was that easy.. -_-
Gonna kick myself now.
I really need to get lessons on scripting in SL.
|