User Guide (Version 1.13)

Using AI Anchors to Set Agent Perception

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn more about legacy features, see the Amazon Lumberyard Legacy Reference.

Another way to control AI agent perception is to use AI anchors. Unlike the Flow Graph method, which relies on logic, this method relies on object placement and level markup.

There are four AI anchors for controlling an AI agent's perception: LIGHTSPOT_LIGHT, LIGHTSPOT_MEDIUM, LIGHTSPOT_DARK, and LIGHTSPOT_SUPERDARK. As you might expect, LIGHTSPOT_SUPERDARK gives an agent the least amount of perception.

These settings limit the visibility for the AI agent inside the specified radius. If a player is inside this radius, the agent has a diminished perception of the player.


To reduce demands on performance, use these AI anchors in place of visual light entities or the sun.

To use AI Anchors for setting perception

  1. In the Rollup Bar, on the Objects tab, click AI, AIAnchor.

  2. Under AIAnchor Properties, double-click AnchorType.

  3. In AI Anchors, select one of the four anchors.

  4. Select Enabled.

  5. Click radius and enter a value in meters.