# CHARACTER_STAY_WITHIN_PARCEL

*LSL constant*

```lsl
integer CHARACTER_STAY_WITHIN_PARCEL = 15;
```

Constant groups: [CharacterParam](/constants/groups/CharacterParam/)

Default setting is [FALSE](/constants/FALSE/), leading to traditional pathfinding behavior.

If a parcel allows scripts and objects and the character does not have the `CHARACTER_STAY_WITHIN_PARCEL` option enabled, it can freely cross the parcel boundary in both directions.

Characters which have `CHARACTER_STAY_WITHIN_PARCEL` set to [TRUE](/constants/TRUE/) treat the parcel boundaries as one-way obstacles.

Pathfinding wander, flee, evade, and pursue behaviors will only choose goal points within their starting parcel.

If a character somehow manages to escape its original parcel (e.g. it was 'pushed' out), it will be able to return to the original parcel, but will be unable to leave the original parcel afterwards.

## See also

### Functions

- [llCreateCharacter](/functions/llCreateCharacter/)
- [llUpdateCharacter](/functions/llUpdateCharacter/)

---

*Source: [CHARACTER STAY WITHIN PARCEL](https://wiki.secondlife.com/wiki/CHARACTER_STAY_WITHIN_PARCEL) on the Second Life Wiki. Content from the Second Life Wiki article CHARACTER STAY WITHIN PARCEL (revision 1179844, 2013-07-10), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/CHARACTER_STAY_WITHIN_PARCEL/
