sm.portal.transferBToB
Transfers objects inside one B opening to the B opening of another portal.
Kind: Function
Environments: Game
Game
sm.portal.transferBToB( fromPortal, toPortal, filter )
Availability: Server only
Can be used to make elevators with several floors.
Portal sizes and opening A must match (world, position and rotation).
Parameters:
| Name | Type | Description |
|---|---|---|
fromPortal |
Portal | The portal to transfer from. |
toPortal |
Portal | The portal to transfer to. |
filter (optional) |
integer | A sm.physics.filter mask selecting which contents to transfer. Only dynamicBody, staticBody and character are meaningful. Defaults to transferring bodies and characters. (Optional) |
Returns:
| Type | Description |
|---|---|
| boolean | True if successful, false on failure. |