llSensorRepeat("",item_key,SCRIPTED,96,TWO_PI,1);
which works fine and pulls my item to the item_key item as long as the other item_key item is free standing, however, if I am holding the item_key item the sensor stops working and won't pull. It's driving me nuts. What do I have to do to fix this?
CODE
if(lPull) {
vector pull = llDetectedPos(0);
if(llVecMag(llGetPos() - pull) > lLong) {
vector dif = llGetPos() - pull;
float range = llVecMag(dif);
float adj = lLong / range;
dif = dif * adj;
llSetPrimitiveParams([PRIM_PHYSICS,TRUE]);
llMoveToTarget(pull+ dif,.4);
llSleep(0.1);
llStopMoveToTarget();
llSetPrimitiveParams([PRIM_PHYSICS,FALSE]);
}
} Thanks in advance
=Riz
