> For the complete documentation index, see [llms.txt](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/getting-started/included-demo-scenes/patrolling-demo.md).

# Patrolling Demo

## Patrolling Demo

The Patrolling Demo shows an AI patrolling a looping path, through the [Movement Component](/emerald-ai-wiki/emerald-components-required/movement-component.md). When it sees another AI of an opposing faction, it attacks it, and then resumes following its patrol path.

<figure><img src="/files/FRerz9pfjIKUDILEqSBF" alt=""><figcaption></figcaption></figure>
