add_collision_profile
Creates or replaces a project collision profile and writes Config/DefaultEngine.ini. Set object type, collision enabled, and channel responses; read back with get_collision_profile.
Instructions
Create a project collision profile, or replace an existing one of that name in full (omitted fields reset, custom responses cleared, can_modify not checked), then write Config/DefaultEngine.ini via TryUpdateDefaultConfigFile, unverified. Returns custom_response_count and already_existed; read it back with get_collision_profile.
Returns: { profile_name: string, object_type_name: string, collision_enabled: string, custom_response_count: int, already_existed: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| can_modify | No | Whether this profile is user-editable in the editor UI. Defaults to true. | |
| help_message | No | Editor tooltip text. | |
| profile_name | Yes | Name of the collision profile to create or replace, e.g. "MyPawnProfile" | |
| custom_responses | No | [{channel: string, response: "Block"|"Ignore"|"Overlap"}, ...] per-channel overrides | |
| object_type_name | Yes | Channel this profile's object type resolves to, e.g. "WorldDynamic" or a custom channel's friendly name | |
| collision_enabled | No | "NoCollision" | "QueryOnly" | "PhysicsOnly" | "QueryAndPhysics" | "ProbeOnly" | "QueryAndProbe". Defaults to "QueryAndPhysics". |