add_mass_config_trait
Add a single trait to a Mass Entity Config without replacing existing traits. Preserves complex replicator settings by appending only.
Instructions
Add a SINGLE trait to a Mass Entity Config without replacing existing traits.
Safe for configs with complex replicator settings — only appends, never replaces. Returns error if the trait already exists on the config.
Args: asset_path: Path to MassEntityConfigAsset (e.g. "/Game/.../DA_MinerMassEntityConfig_Mk1") trait_class: Full class path (e.g. "/Script/Jiggify.MassBuildingHealthTrait") properties: Optional dict of property values to set on the new trait. Supports floats, ints, bools, strings. Example: {"MaxHealth": 150, "Resistance_Fire": 0.2}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_path | Yes | ||
| properties | No | ||
| trait_class | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |