All i need is that too prims comunicate each other.
One told the other its own x,y,z and then, the second prim faces it and moves there.
But, im failing at llRotLookA(
How to get the rot if i have the x,y,z of the target prim?
I was doing this, but i realise that i was messing up things:
listen( integer channel, string name, key id, string message )
{
list tokens = llParseString2List(message,[","],[]);
MyPos.x = llList2Float(tokens,0);
MyPos.y = llList2Float(tokens,1);
MyPos.z = llList2Float(tokens,2);
vector pos = <MyPos.x,MyPos.y,MyPos.z>;
vector eul = <MyPos.x,MyPos.y,MyPos.z>;
eul *= DEG_TO_RAD; //convert to radians
rotation quat = llEuler2Rot(eul); //convert to quaternion
llMoveToTarget(pos+offset*quat,.3);
llRotLookAt(quat, .1 , 1);
}
Thanks in advance for your help

;