net_add_replicated_component
Add or configure a replicated component on an Actor Blueprint, creating it if missing and setting the replication flag for multiplayer networking.
Instructions
Create or configure a Blueprint component template for replication.
Args: blueprint_name: Actor Blueprint asset name or path. component_name: SCS component template variable name. component_type: Optional component class/name to create when missing. replicates: Component replication flag. create_if_missing: Create the component when component_type is supplied and it is absent. save: Save the Blueprint package after mutation. compile: Compile the Blueprint after mutation.
KB: see knowledge_base/20_NETWORKING_AND_REPLICATION.md#mcp-network-tools Example: net_add_replicated_component(blueprint_name="/Game/BP_Door", component_name="ReplicatedMesh", component_type="StaticMeshComponent")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| compile | No | ||
| replicates | No | ||
| blueprint_name | Yes | ||
| component_name | Yes | ||
| component_type | No | ||
| create_if_missing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |