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?