# sm.portal.addWorldPortalHook

Adds a hook that a new world can find to hook up the other side of a portal.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.portal.addWorldPortalHook( world, name, portal )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.portal.md#addworldportalhook)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The target world. |
| `name` | string | The portal name. |
| `portal` | [Portal](../Game-Script-Environment/Userdata/Portal.md) | The portal. |
