Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving an object with a button

Hand Ixtab
Second Life Resident
Join date: 3 Nov 2004
Posts: 3
11-08-2004 02:02
Hi there,
I'm trying to trigger an object to move with a button. More simply put, I want the following behaviour;
Touch one object, and another starts moving to the right.
Touch the first object again, and the other stops moving.
The moving object has built-in logic so that it stops moving automatically if it goes 'too far'.
Could anyone help me with this? I tried linking the objects together then using llMessageLinked, but llSetPos and velocity functions set the whole (linked) object's pos/vel..

Thanks
Till Stirling
Crazy Inventor
Join date: 31 Jul 2004
Posts: 124
11-08-2004 02:07
This would be a classical case to use a listener in my opinion! Have the 'controller'-object shout on a channel and replace the Linked-Message-Event with a listener. And voila it should work. If you need a longer distance controller have it shout instead of saz.

Till
_____________________
Hand Ixtab
Second Life Resident
Join date: 3 Nov 2004
Posts: 3
11-08-2004 02:16
Aha! Thanks :)