-------------------------------------------
vector pos=<77.068,77.023,24.583>; //position of object which is on ground
default
{
touch_start(integer total_number)
{
llRequestPermissions(llGetOwner(),PERMISSION_CONTROL_CAMERA);
llOwnerSay("Touched"
; llSetCameraParams([CAMERA_ACTIVE,TRUE, CAMERA_POSITION, pos+<0,0,4>,CAMERA_FOCUS, pos,CAMERA_POSITION_LOCKED,CAMERA_FOCUS_LOCKED]);
llSleep(5);
llClearCameraParams();
}
}
-----------------------------------------------------
And when i replace "pos" with llGetPos(), camera sets on Avtar correctly.
-----------------------------------------------------
llSetCameraParams([CAMERA_ACTIVE,TRUE, CAMERA_POSITION, llGetPos()+<0,0,4>,CAMERA_FOCUS, llGetPos(),CAMERA_POSITION_LOCKED,CAMERA_FOCUS_LOCKED]);
-----------------------------------------------------
Plz reply...
thanx in adv.
