B1TraitScript
- Defines a script block for a trait, specifying entry type, check interval, proximity constraints, triggers, conditions, and executes.
| Property | Type | Description | Metadata |
|---|---|---|---|
| TraitEntryType | EB1TraitEntryType | Entry type that controls when and how this trait script is evaluated. | Category: B1TraitScript |
| CheckInterval | float | Interval in seconds between successive evaluations of this script. | Category: B1TraitScript ClampMin: 0 |
| NeedCharacterCount | int32 | Minimum number of other characters required within range for this script to activate. | Category: B1TraitScript ClampMin: 0 |
| CircleConstraintSquared | float | Squared radius of the proximity circle constraint used for character proximity checks. | Category: B1TraitScript |
| EventTriggers | TArray | List of event triggers that can activate this trait script. | Category: B1TraitScript |
| Conditions | TArray | Conditions that must all be satisfied for this trait script to execute. | Category: B1TraitScript |
| Executes | TArray | List of actions executed when all conditions and triggers are satisfied. | Category: B1TraitScript |
| RequiredTriggerCount | int32 | (AccumulatedTrigger only) Number of triggers required within a single in-game day before firing Executes[0]. Counter resets at day boundary. | Category: B1TraitScript ClampMin: 1 |