Overview
WCGASNPCFeatConfig is a Data Asset that defines pre-configured feat loadouts for NPCs in the Wonderscape Creations GAS Ally plugin. It allows designers to specify which feats an NPC should receive automatically at initialization without writing any C++ code, making NPC feat configuration a fully designer-driven workflow. The configuration bypasses the normal player selection workflow, granting feats directly when the WCGASFeatComponent initializes.
Creating an NPC Feat Config Data Asset
Using the Wonderscape GAS Ally Menu
- Open the Content Browser
- Right-click in any folder where you want to create the asset
- Navigate to: Wonderscape GAS Ally > Feats > NPC Feat Config
- Give your new asset a descriptive name (e.g.,
NPC_GoblinScout, NPC_BossDragon, NPC_GuardCaptain)
- Double-click the asset to open it and configure its properties
How NPC Feat Config Works
Application Flow
- Asset Assignment
- Assign your NPC Feat Config data asset to the
NPCFeatConfig property on the WCGASFeatComponent
- This property accepts soft references for optimal memory usage
- Automatic Application After Pool Loading
- When the WCGASFeatComponent initializes and pools finish loading
- The component detects that NPCFeatConfig is set
- Calls
ApplyNPCFeatConfig() automatically
- Feat Granting Process
- Iterates through FeatsToGrant array in order
- Looks up each FeatID in registered pools to find feat definitions
- Optionally validates prerequisites (if
bValidatePrerequisites is enabled)
- Grants each valid feat with the specified rank and selection metadata
- Runtime Logging
- Logs application start with config name, owner, feat count, and prerequisite mode
- Logs warnings for feats not found in pools or failed prerequisite checks
- Logs final summary showing granted vs total feats
Configuration Properties
Identity