Talk:LlSetCameraParams

From Second Life Wiki
Revision as of 11:10, 27 April 2010 by Fred Gandt (talk | contribs) (Question.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Params not setting

I am finding that params are not setting if the last controls used before sitting on the scripted object were the camera controls (LL 1.23) although they set as expected if the movement controls were the last touched before sitting. Is this a caveat or am I missing something? Here are the settings that produce the results. <lsl>run_time_permissions(integer perm) {

   if(perm & PERMISSION_CONTROL_CAMERA) // This is returning TRUE
   {
       llClearCameraParams();
       llSetCameraParams([CAMERA_ACTIVE, TRUE,
                          CAMERA_FOCUS, pos + <8.0,4.0,-6.0>,
                          CAMERA_FOCUS_LOCKED, TRUE,
                          CAMERA_POSITION, pos - <8.0,4.0,1.0>,
                          CAMERA_POSITION_LOCKED, TRUE]);
   }

}</lsl> -- Fred Gandt (talk|contribs) 18:10, 27 April 2010 (UTC)