# llSetLinkCamera

*LSL function*

```lsl
void llSetLinkCamera(integer link, vector eye, vector at);
```

- `integer link`: Link number (1 for root, >1 for children) or a LINK_* flag.
- `vector 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 **link**ed prim.

```lsl title="How to use" frame="terminal"
llSetLinkCamera(0, ZERO_VECTOR, ZERO_VECTOR);
```

## 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](https://wiki.secondlife.com/wiki/Viewer_coordinate_frames#local) to the prim, if you want it relative to the seated [avatar](https://wiki.secondlife.com/wiki/Viewer_coordinate_frames#agent) (which likely has a custom sit rotation and offset) or the [region](https://wiki.secondlife.com/wiki/Viewer_coordinate_frames#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

Date of Release [10/08/2011](https://wiki.secondlife.com/wiki/Release_Notes/Second_Life_Server/11#11-08-10-238207)

## See also

### Functions

- [llSetCameraAtOffset](/functions/llSetCameraAtOffset/)
- [llSetCameraEyeOffset](/functions/llSetCameraEyeOffset/)
- [llForceMouselook](/functions/llForceMouselook/)
- [llSetCameraParams](/functions/llSetCameraParams/)

---

*Source: [LlSetLinkCamera](https://wiki.secondlife.com/wiki/LlSetLinkCamera) on the Second Life Wiki. Content from the Second Life Wiki articles LlSetLinkCamera (revision 1185656, 2013-12-25), Template:LSL Function/link (revision 1216622, 2024-05-04) and Template:LSL Function/offset (revision 1169422, 2012-06-18), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llSetLinkCamera/
