# Patrolling Demo

## Patrolling Demo

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

<figure><img src="https://4021441153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv03IiZPaMe8fX49a9MnO%2Fuploads%2FtMhT65lsxhDAKhAnBO27%2FPatrollingDemo.gif?alt=media&#x26;token=3ac8fd72-8bd1-4f19-8d51-2d36c74b590f" alt=""><figcaption></figcaption></figure>
