query_mass_entities
Count Mass entities matching a fragment or tag requirement, returning how many have all, any, or none of the specified fragments.
Instructions
Count entities matching a fragment/tag requirement. Requires "fragment" (UScriptStruct path or name) and optional "presence" ("All"|"Any"|"None" — default "All"). For tag-only queries use "tag" (UScriptStruct path).
Returns: { matching_count: int, fragment, tag, presence }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Optional. Same format as fragment. Use to require an FMassTag marker. | |
| fragment | No | Script struct path or name (e.g. "/Script/MassMovement.MassMovementFragment" or "FMassMovementFragment"). | |
| presence | No | "All" (default), "Any", or "None". |