Menu
Lumberyard
Developer Guide (Version 1.11)

Group and Global AI: Factions

Example: AI formations of different factions

Place on a map three grunts of the following factions. Note who is hostile to who.

  • grunts

  • assassins

  • civilians

For example:

Copy
<Factions> <Faction name = "Players"> <Reaction faction- "Grunts" reaction="hostile"/> <Reaction faction- "Civilians" reaction="friendly"/> <Reaction faction- "Assassins" reaction="hostile"/> </Faction> <Faction name="Civilians default="neutral"/> ... </Factions>

(see Game/Scripts/AI/Factions.xml)