llSetLinkCamera
function
Function syntax
llSetLinkCamera(integer link,// Link number (1 for root, >1 for children) or a LINK_* flag. Values: Linkvector eye,// Eye offset position vector in local coordinates relative to the prim.vector at// Look-at offset position vector in local coordinates relative to the prim.
);- Energy
- 10
Sets the camera eye position offset eye and looking-at position offset at for avatars who sit on the linked prim link.
Sets the camera eye offset, and the offset that camera is looking at, for avatars that sit on the linked prim.
llSetLinkCamera(0, ZERO_VECTOR, ZERO_VECTOR);Caveats
Section titled “Caveats”- Setting this will not update the cameras of seated avatars, it will only effect avatars that subsequently sit down. The camera settings have to be prepared in advance.
- The offsets at and eye are locally relative to the prim, if you want it relative to the seated avatar (which likely has a custom sit rotation and offset) or the region, you must do the computation yourself.
Camera position and focus set by this function is a Prim Property. It will survive the script and it will survive prim taking and prim rezzing
History
Section titled “History”Date of Release 10/08/2011
See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.