I am trying to cause a linkset to point at a target object and then go to it..I was able to get it to point properly using Point2Object( key UUID )
{
vector a = llList2Vector(llGetObjectDetails(UUID, ([OBJECT_POS])),0);
llSetRot(llRotBetween(<0,0,-1>,llVecNorm(a - llGetPos())));
}which worked fine, then I added code using llMoveToTarget, it moves towards the target just fine but doing this defeats the point @ function above for some reason..it's orientation stays the same regardless of the targets position. state fly
{
state_entry()
{
Point2Object( target );
llMoveToTarget(target_pos,0.4);
llSetTimerEvent(.1);
}
timer()
{
animate();
Point2Object( target );
}
at_target(integer tnum, vector targetpos, vector ourpos)
{
llTargetRemove( target_id );
GetTarget();
state hover;
}
} Any ideas ?