Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Setting Camera view on Sit

Valla Tenk
Registered User
Join date: 20 Feb 2007
Posts: 7
06-04-2007 00:28
Can anyone give me any pointers on how to set up the camera view when a person sits down. I have scripted a stool so that the avatar will always face a certain direction upon sitting, but need to set the camera view as well. Try as I might i get nowhere.... The reason I need to do this is so that an avatar can sit at a table (or some other object) and the view automatically adjusts so that they look down onto the table, not straight ahead as is the norm.

Any help would be appreciated... Valla
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-04-2007 00:56
Where your script sets llSitTarget() it can also set llSetCameraAtOffset() and llSetCameraEyeOffset(), which determines the default camera focus and viewing position, respectively, in the local coordinates of the prim. Note that what you can set is the *default* cam settings--what you get after you hit the Esc key enough times to get out of any panning and zooming you've done.