# Teleport Effect

## Creation

To create a teleport effect, find (or create) the *GameName/Resources/GameName/AbilityEffect* folder (or any subfolder) in the project tab and right click.  Choose *Create > AnyRPG > Abilities > Effects > TeleportEffect*.

![](https://2976860065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7Nd93HqSNPpv2JhrViE%2Fuploads%2FIhJgjA7dCUlbwgY5nzYg%2Fimage.png?alt=media\&token=41db1d91-f95f-45f2-a841-c06bbfe79223)

## Properties

In addition to all the properties of its parent class, [Fixed Length Effect](https://docs.anyrpg.org/scriptable-objects/ability-effects/..#fixed-length-effect-properties), teleport effects have the following properties.

| Name                     | Description                                                                                                                               |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Level Name               | The name of the [Scene](https://docs.anyrpg.org/scriptable-objects/scene-node) to load.                                                   |
| Location Tag             | The name of a tag to search for in the scene.  If the tag is found, the player will spawn at the location of the GameObject with the tag. |
| Override Spawn Location  | If true, the player will spawn at the Vector3 location in the *Spawn Location* field.                                                     |
| Spawn Location           | The Vector3 location the player will spawn at if the *Override Spawn Location* field is set to true.                                      |
| Override Spawn Direction | If true the player will spawn with their forward direction set to the Vector3 direction in the *Spawn Forward Direction* field.           |
| Spawn Forward Direction  | The Vector3 direction that the player should be facing when they spawn if the *Override Spawn Direction* field is set to true.            |

## Next steps

* Add a teleport effect to an [Ability](https://docs.anyrpg.org/scriptable-objects/abilities).
* Add a teleport effect to another [Ability Effect](https://docs.anyrpg.org/scriptable-objects/ability-effects) to chain them together.
