Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object Touching

Ahroun Maelstrom
Registered User
Join date: 30 Sep 2004
Posts: 22
01-24-2005 13:18
I need to write a script that will allow one object to trigger the Touch, Touch_Start, and Touch_End events of another object. Is this doable?
McWheelie Baldwin
Registered User
Join date: 9 Apr 2004
Posts: 154
01-24-2005 13:23
To the best of my knowledge this is not possible. You can however have one object trigger collision/collision_start/collision_end. They obviously would have to make contact for this to happen.

McW
_____________________


Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
01-24-2005 13:29
Are these two objects linked? If so, I suggest you use llMessageLinked/touch events in the first object and link_message in the second object.

OR...

If the object with your touch script is in the master prim, touching either object will trigger touch events.

The yellow prim in a link set is the master, by the way. ;)
_____________________
---
McWheelie Baldwin
Registered User
Join date: 9 Apr 2004
Posts: 154
01-24-2005 13:33
From: Jeffrey Gomez
Are these two objects linked? If so, I suggest you use llMessageLinked/touch events in the first object and link_message in the second object.

OR...

If the object with your touch script is in the master prim, touching either object will trigger touch events.

The yellow prim in a link set is the master, by the way. ;)



Good advice, I don't know why I automatically assumed the objects were separate. I think I may have misunderstood the original post entirely. ;) :P

If in fact we are talking about two separate objects, and you want one to cause the other to do something, you may also look into using listens and says or shouts. If you move the code in your original touch handler to a function, both the touch and listen events could fire off the same code. Making it both locally controlled and remote controlled from the other object.

I guess for any kind of detailed answer, it would be helpful to have more information about what you're actually trying to accomplish.

McW
_____________________


Ahroun Maelstrom
Registered User
Join date: 30 Sep 2004
Posts: 22
01-24-2005 13:34
Nope, in fact, I don't even own one of the objects. I'm trying to create a bot to interface with another object that uses touching as a component.
McWheelie Baldwin
Registered User
Join date: 9 Apr 2004
Posts: 154
01-24-2005 13:37
From: Ahroun Maelstrom
Nope, in fact, I don't even own one of the objects. I'm trying to create a bot to interface with another object that uses touching as a component.


Ahhh! Well, I am sorry to say, I don't think this is possible currently in LSL. :(

McW
_____________________


Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
01-24-2005 13:41
Wait wait... does this have modify permissions?

If so, link YOUR prim as the master and make the touch calls in there. Or do the reverse if the touch calls are in the second object. :D

Yes. More information is a bit necessary. :o
_____________________
---
Ahroun Maelstrom
Registered User
Join date: 30 Sep 2004
Posts: 22
01-24-2005 13:48
No. I have absolutely NO ACCESS to the other object. None at all. Zilch. It exists, it belongs to someone else, is 100% airtight and the only way to interact with it would be the builder's own defined systems which rely on touching.
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
01-24-2005 13:52
This only confuses me further, because now it sounds like you're attempting to hijack someone's lost object to get rid of it.

Again, more information is needed, because anything that locks you out of someone else's script in this manner should, in fact, be in place - requiring other countermeasures to be taken. Or so it sounds. :o
_____________________
---
Ahroun Maelstrom
Registered User
Join date: 30 Sep 2004
Posts: 22
01-24-2005 14:13
I'm not trying to do anything illicit. The other person's object is a game that uses touch to communicate your intentions to the machine. I would like to make a bot to play the game.

Better? :)
gene Poole
"Foolish humans!"
Join date: 16 Jun 2004
Posts: 324
01-24-2005 14:59
How about this?

I'm currently looking for work. You can hire me to be your "bot". I can touch, and parse scripts written in LSL or even just plain English (and some in French and German, though correct behaviour there is not guaranteed). As long as you're paying me, I'm 100% obedient. Also, I have no secret "backdoors" that will activate an "enslave mankind" directive or anything like that. We all know what happened with SkyNet...

If you choose to go the silicon-based route, I'm afraid you probably won't be able to get touch events going (yet).

However, if you can convince the builder to make a slight mod, you might be in luck. Instead of the touch event doing the work, it can simply delegate to a listen by whispering on a "control" channel. Then, the other build can tell you the control channel used, and you can activate things remotely. This is all assuming the builder is cool with having humans get their asses handed to them by your bot's bytecode (depending on your bot's "mad skillz" factor, of course). He/she will probably also want some kind of security interlock to prevent abuse of the "remote control" capability. I'm just working on some stuff like that myself, actually.

Good luck!
McWheelie Baldwin
Registered User
Join date: 9 Apr 2004
Posts: 154
01-26-2005 22:24
Just curious, do you have permission from the owner of said object to write this bot to interface it in the first place? I am guessing not.

McW
_____________________


Ahroun Maelstrom
Registered User
Join date: 30 Sep 2004
Posts: 22
01-27-2005 10:46
I have not asked one way or another. That is part of why I have been keen to security issues and right-of-control issues in this post and the post over in Feature Suggestions on this issue.
Blueman Steele
Registered User
Join date: 28 Dec 2004
Posts: 1,038
Nested reality
01-27-2005 10:52
So someone in this game built a game that, instead of you playing this game you want to make a bot (in the first level of "game";) play an authored "game" (second level).

I'm glad I finally loaded a bot in in Unreal to keep from having to play it myself.

If you just want money have you tried the money trees?