
With that aside I am trying to make a pet, a flying one but that's besides the point, and I want it to; obviously, follow me. Problem is every time I look for anything on follow scripts, while working to make the pet follow, it always forces it to one position on one side of me. When I back up, it backs up too.
What I want instead is something that follows when I move but only tries to get within a certain distance of me and then stop, no matter what orientation to me it is. (eg not having to be exactly by my left arm) If I move to the left I want it to stay still until I leave a certain radius and then it will proceed to follow again. If I back up I want it to stand still until I pass its radius at the rear to then turn and follow that way.
I guess an easier explanation would be a sphere around the pet that, as long as I am inside it, anywhere inside, the pet is standing still but as soon as I leave the sphere it seeks to follow.
The way I have it working right now is a script embedded in the pet that uses llSensorRepeat to find the Holder (the object I then hold/wear) and tracks it. That's how it seemed such follow scripts worked.
Problem is, as I said, the only way I can get it to work is if it uses an offset and the pet hugs my arm, any alternative I've tried just won't work. Now I know I'm not the greatest at scripting, having only recently started learning, but from what I gathered from the Wiki and here this is what I wrote to make it follow me:
default
{
state_entry()
{
llSensorRepeat("Holder", "Holder", SCRIPTED, 40.0, 2*PI, 2.0);
}
sensor(integer total_number)
{
vector rad = llDetectedPos(0);
vector offset =<0.0,1.0,0.0>;
rad +=offset;
llMoveToTarget(rad, 1.0);
}
}
Is this at all possible or should I be satisfied that it likes to hug my left arm?

