Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

at_target bug?

Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
08-29-2008 16:48
i cant seam to make this work the prim falls and once something touches it, it moves back to the possition it was at but it dosnt seam to get passed the at_target unless i did something dumb again. any ideas?

CODE

vector pos;
default
{
state_entry()
{
pos = llGetPos();
llSetBuoyancy(.975);
llSetStatus(STATUS_PHYSICS,TRUE);
}
collision(integer touche)
{
llMoveToTarget(pos, 1);
}
at_target(integer tnum, vector targetpos, vector ourpos)
{
llWhisper(0,"at target");
llStopMoveToTarget();
}
}
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
08-29-2008 19:14
I don't think you've defined a llTarget yet.

http://rpgstats.com/wiki/index.php?title=LlTarget
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
08-29-2008 19:30
that might do it hehe