Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Moving attachments

Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
11-10-2005 15:06
I'm thinking this is probably a bug, but I'd like to hear other people's experience with it.

Basically I've created a simple attachment which when clicked will move, when clicked again it will move back again.
However, the problem is that it doesn't always do this! Sometimes I will attach it and it will work just fine, other times it just refuses to move (though it will quite happily spew messages should I add an llOwnerSay() or such to it).

The script is so simple it's almost not worth posting but I will for completeness sake:

CODE
integer n = 1; // Stores the current state of the object
default {
touch_start (integer x) {
llSetPos(llGetLocalPos() + <0,(0.05*n),0>); // Move the object a small distance
n *= -1; // Change the 'state' (so next time round it will go in reverse direction)
}
}


As you can see, it's very simply, no frills at all. But it doesn't appear to work with any consistancy, is it my method of doing it, is it the distance involved being so tiny or is it a bug?
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
11-10-2005 16:16
I've encountered problems when trying to issue llTargetOmega commands to my attachments, usually requiring me to recompile and/or reattach said attachments. Perhaps you're encountering a similar problem here. Might be a good idea to bug-report it.
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).

"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)."
- mysterious system message I received after making off with Pony Linden