# Effect.setHost

Sets a [Interactable](../Game-Script-Environment/Userdata/Interactable.md) as host for an effect.

**Kind:** Function

**Environments:** Game

## Game

### Overload 1

``` { .lua .api-signature }
effect:setHost( Interactable, boneName? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Effect.md#sethost-interactable-string-optional)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `effect` | [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
| `Interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The Interactable the effect is attached to. |
| `boneName` *(optional)* | string | The bone name to attach effect to. (Defaults to not attached to a bone) (Optional) |

### Overload 2

``` { .lua .api-signature }
effect:setHost( shape, boneName? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Effect.md#sethost-shape-string-optional)

**Availability:** Client only

Sets a [Shape](../Game-Script-Environment/Userdata/Shape.md) as host for an effect.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `effect` | [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape the effect is attached to. |
| `boneName` *(optional)* | string | The bone name to attach effect to. (Defaults to not attached to a bone) (Optional) |

### Overload 3

``` { .lua .api-signature }
effect:setHost( Character, boneName? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Effect.md#sethost-character-string-optional)

**Availability:** Client only

Sets a [Character](../Game-Script-Environment/Userdata/Character.md) as host for an effect.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `effect` | [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
| `Character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The Character the effect is attached to. |
| `boneName` *(optional)* | string | The bone name to attach effect to. (Defaults to not attached to a bone) (Optional) |

### Overload 4

``` { .lua .api-signature }
effect:setHost( pHarvestable, boneName? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Effect.md#sethost-harvestable-string-optional)

**Availability:** Client only

Sets a [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) as host for an effect.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `effect` | [Effect](../Game-Script-Environment/Userdata/Effect.md) | The effect. |
| `pHarvestable` | [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) | The pHarvestable the effect is attached to. |
| `boneName` *(optional)* | string | The bone name to attach effect to. (Defaults to not attached to a bone) (Optional) |
