Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to control objects other than the one the scripts are on?

FX Leakey
Registered User
Join date: 25 Nov 2007
Posts: 4
12-01-2007 23:31
Hi,

I am trying to control an object (say, change its position or texture) when I touch a different object, is that possible at all? As far as I can see, the llSet... functions all work on the scripted object itself, not on any other objects. Is there a way out?

Thanks for any tips,

FX
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-02-2007 01:28
From: FX Leakey
Hi,

I am trying to control an object (say, change its position or texture) when I touch a different object, is that possible at all? As far as I can see, the llSet... functions all work on the scripted object itself, not on any other objects. Is there a way out?

Thanks for any tips,

FX

you can do it 2 ways... one by faking a second object (having it linked but not touching) or by passing commands to the second object from the first (some variation of llSay on an off channel is the common way... the controlled object will have it's own scripts to do the neccessary actions
_____________________
|
| . "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...
| -
FX Leakey
Registered User
Join date: 25 Nov 2007
Posts: 4
llSay() method works perfectly!
12-02-2007 20:43
Thanks!