# edge_limit var (client)

Source: https://ref.dm-lang.org/client/var/edge_limit

### Default value
> null

This value determines the limits that a client's eye will display. If `client.perspective` uses the `EDGE_PERSPECTIVE` flag, the view shouldn't scroll beyond the bounds set by `edge_limit`. If the bounds of `edge_limit` are as big as or smaller than the client's view, no scrolling will occur even if `EDGE_PERSPECTIVE` is not used. Normally this value is null, which provides freedom for the eye to move anywhere on the map. It may be changed to a text value describing the limits in more detail.

The format is similar to `atom.screen_loc` which uses `"[x1],[y1] to [x2],[y2]"`. It can also use directions such as `"SOUTHWEST to NORTHEAST"`, which refer to the limits of the map.

```dm
area/house
  var/x1,x2,y1,y2

  Entered(mob/M)
    if(ismob(M) && M.client)
      M.client.edge_limit = "[x1],[y1] to [x2],[y2]"

  Exited(mob/M)
    if(ismob(M) && M.client)
      M.client.edge_limit = null
```

### See also
- [eye var (client)](https://ref.dm-lang.org/client/var/eye.md)
- [lazy_eye var (client)](https://ref.dm-lang.org/client/var/lazy_eye.md)
- [perspective var (client)](https://ref.dm-lang.org/client/var/perspective.md)
- [view var (client)](https://ref.dm-lang.org/client/var/view.md)
- [screen_loc var (movable atoms)](https://ref.dm-lang.org/atom/movable/var/screen_loc.md)
