Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Avatar llMoveToTarget?

Deneb Rosewood
Registered User
Join date: 2 Feb 2006
Posts: 15
08-22-2006 23:39
I see it used all over the place... in fact, I've modified a script using it that I use on a regular bases, and even the Wiki says you can use llMoveToTarget in a script on an object attached to you to move your avatar... But it's not working for me now o.o

I make a new object (tried with a physical and a nonphysical) put a script in it, wear it, then save the following;

state_entry()
{
vector pos = llGetPos + <0,0,1>;
llMoveToTarget(pos,1);
}

Just a simple demo to get it working before I make the big script that needs it. Effect? None, nothing happens. Then I tried manually entering the vecter even, in case my math wasn't right, just to cover all the bases, same story.

I KNOW this should work, I'm looking at a script that uses it successfully right now, what am I missing?
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
08-23-2006 00:31
There's a bug/problem/whatever when using functions like llMoveToTarget in an attached item, where the function will not work after editing the script while attached. Easy fix though, just detach and reattach and it'll work :)

P.S. Don't forget to use llStopMoveToTarget or you're avatar will be stuck where you moved to :P
_____________________