# Portal.setOpeningA

Sets the position of portal opening A.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
portal:setOpeningA( position, rotation, world? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Portal.md#setopeninga)

**Availability:** Server only

The world will be the same as the object that calls this function.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `portal` | [Portal](../Game-Script-Environment/Userdata/Portal.md) | The portal. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The portal opening A position. |
| `rotation` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The portal opening A rotation. |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world to look in (Optional, defaults to world from script context) |
