Ticket System - NEW 1.2
The AI Ticketing System controls how many AI characters can attack a target simultaneously. This avoids chaotic group fights by limiting attackers, and letting others wait or reposition, simulating more strategic AI behavior.
✅ Prerequisites
Before using this system:
✅ Your AI Controller (must inherit from
AACFAIController) has theACFCombatBehaviourComponentattached.✅ Your AI Characters are correctly linked to that controller.
Step-by-Step Usage in Blueprint
1. 🧩 Configure Combat Behavior in the AI Controller
Open your custom AI Controller Blueprint (must be a child of AACFAIController):
Select the
ACFCombatBehaviourComponentfrom the Components panel.In the Details Panel, locate
ActionByCombatState.Add entries for each combat state (e.g.,
EMeleeCombat).
Inside each state:
Add one or more
FActionChancesstructs.Configure as follows:
Property | Description |
|---|---|
ActionTag | The Gameplay Tag of the action to execute (e.g., |
Weight | How likely this action is to be chosen (used in random selection) |
bRequiresTicket | If true, this action can only be executed if the AI gets a ticket |
TicketDuration | How long this ticket will prevent other AIs to perform an action that requires a ticket against this specific target |
BTWaitTime | Time to wait (in seconds) before performing the action |
Priority | Priority of the action (used in |
Adjust Max Attackers
In your GameState Blueprint:
Add or select the
ACFAIManagerComponent.Set
MaxAttackersPerTargetin the Details Panel (default is1).
This value defines how many AI characters can attack a target at the same time.
Summary
Component | Location | Role |
|---|---|---|
| In the AI Controller | Manages behavior/action logic and ticket requests |
| In the GameState | Global manager for all AI tickets per target |