# llStopLookAt

*LSL function*

```lsl
void llStopLookAt();
```

- Energy: 10

Stops causing the object to look at or point toward a target (canceling llLookAt or llRotLookAt).

Stop causing object to point at a target

Use in conjunction [llLookAt](/functions/llLookAt/) or [llRotLookAt](/functions/llRotLookAt/).

```lsl title="How to use" frame="terminal"
llStopLookAt();
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={1-14}
default
{
    state_entry()
    {
        llSensorRepeat("", "", AGENT, 20.0, PI, 0.2);
        //Detects avatars
    }

    sensor(integer total_number)
    {
        llLookAt( llDetectedPos(0) + <0.0, 0.0, 1.0>, 3.0, 1.0 );
        //Looks at the nearest avatar.
    }

    touch_start(integer total_number)
    {
        llStopLookAt();
        llSensorRemove();
        //Stops looking at any avatar and removes the sensor.
    }
}
```

</details>

## See also

### Functions

- [llLookAt](/functions/llLookAt/)
- [llRotLookAt](/functions/llRotLookAt/)

---

*Source: [LlStopLookAt](https://wiki.secondlife.com/wiki/LlStopLookAt) on the Second Life Wiki. Content from the Second Life Wiki article LlStopLookAt (revision 1194368, 2015-01-22), CC BY-SA 3.0.*

---

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