|
Colin Nilsson
I build therefor I am..
Join date: 14 Sep 2005
Posts: 54
|
09-18-2006 04:59
Hello to whom will be so kind to enlighten me. I have two questions which I probably should post in two seperate threads but to save time maybe I can have them both answered here. 1) How do you go about making an object detect it's own position upon movement or change of it's position? --from what I understand you need to use a timer event since the "changed" state will not work for rotation and position. -- I want it to relay it's vector's to another object --So far I have the object communicating it's vectors to the other object through a chat channel but I am not sure that is the way it can be done. How do you decode those vectors to create them as the vectors in another object? 2) Is it possible to create a TP that works just on touch alone without having to have an AVI actually sit upon it? I have seen it done (I think) but was just wondering what the theory behind doing so is. I'm still a very amature scripter but I'm doing my best to find out as much on my own before I go asking around. But I think I have read all I can on the WIKI and manuals and I'm still here scratching my head. Any help would be greatly appreciated. 
_____________________
Colin Nilsson
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
09-18-2006 05:08
Not fully sure what you're referring to on #1, but on #2, this can be accomplished fairly easily and it's not really a scripting thing.
If you look at the tabs for the object, at the bottom of one it says On Touch: and has a drop down menu...you can select Sit on Object, which will make anyone who clicks on it sit on it, and therefore they would teleport if the TP was set on touch
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
09-18-2006 08:09
If I understand #1 properly you're looking for moving_start and moving_end or maybe, depending on how you do it, at_target events.
|
|
Teddy Wishbringer
Snuggly Bear Cub
Join date: 28 Nov 2004
Posts: 208
|
09-18-2006 09:11
From: Colin Nilsson Hello to whom will be so kind to enlighten me. I have two questions which I probably should post in two seperate threads but to save time maybe I can have them both answered here. 1) How do you go about making an object detect it's own position upon movement or change of it's position? --from what I understand you need to use a timer event since the "changed" state will not work for rotation and position. A timer event that reads it's position (llGetPos) works great! From: someone -- I want it to relay it's vector's to another object
Chat works good if you filter the listening object well enough not to cause laggies. From: someone --So far I have the object communicating it's vectors to the other object through a chat channel but I am not sure that is the way it can be done. How do you decode those vectors to create them as the vectors in another object?
Just send the vectors as text and convert back to vectors in the listening object. ie: YourVector = llGetPos() llSay(channel, (string)YourVector); in the listening object's listen event: HisVector = (vector)message the (string) and (vector) thingies up there convert the variable to another format. Ie: '(string)YourVector' converts YourVector to a string that can be sent by Say. And then (vector)message converts message back to a vector on the other end. From: someone 2) Is it possible to create a TP that works just on touch alone without having to have an AVI actually sit upon it? I have seen it done (I think) but was just wondering what the theory behind doing so is.
Yes, change the objects default action to Sit for the touch action. Normally it defaults to Touch (in the prim/object's general property settings), so a sit action is performed when touching it instead of triggering the touch event. It's still a sit teleporter, but instead of having to right click on it and sit on the object, the person can left click on it instead. Make sense?
|
|
Colin Nilsson
I build therefor I am..
Join date: 14 Sep 2005
Posts: 54
|
Thanks for the help . .I'll give it some tries
09-18-2006 14:56
Thanks for the help everyone. .I'll give it a go and see what I come up with. i think this helped alot. I hope I can be of some help to someone as clueless as myself one day. hehe
_____________________
Colin Nilsson
|
|
Colin Nilsson
I build therefor I am..
Join date: 14 Sep 2005
Posts: 54
|
09-18-2006 15:01
From: Teddy Wishbringer A timer event that reads it's position (llGetPos) works great!Chat works good if you filter the listening object well enough not to cause laggies.Just send the vectors as text and convert back to vectors in the listening object. ie: YourVector = llGetPos() llSay(channel, (string)YourVector); in the listening object's listen event: HisVector = (vector)message
the (string) and (vector) thingies up there convert the variable to another format. Ie: '(string)YourVector' converts YourVector to a string that can be sent by Say. And then (vector)message converts message back to a vector on the other end. Yes, change the objects default action to Sit for the touch action. Normally it defaults to Touch (in the prim/object's general property settings), so a sit action is performed when touching it instead of triggering the touch event. It's still a sit teleporter, but instead of having to right click on it and sit on the object, the person can left click on it instead. Make sense? Thanks Teddy .. I was actually sending to vectors this way.. I prbably just have one thing wrong or need to stare at it a couple of hours more. and as far as the Sit teleport thing goes.. " ummm Duh" on my part.. Thanks for all the help guys..
_____________________
Colin Nilsson
|