> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/library-functions/effects/effects.addeffect.md).

# Effects.AddEffect

## `Effects.AddEffect(Effekt, Sound, X, Y, Verzögerung)`

Fügt einen Effekt an einer bestimmten Position hinzu.

#### Rückgabewert

none

#### Beispiel

```lua
Effects.AddEffect(Effects.GRAYSMOKE02, Sounds.AMB_FIRE,410, 349, 0)
Effects.AddEffect(Effects.MUSHROOMFARM_BUILD, Sounds.MAGIC_STONECURSE, 200,200,0)
Effects.AddEffect(Effects.RMAGIC_JUPITERSLIGHTNING, Sounds.MAGIC_JUPITERS_LIGTHNING, 270, 295, 7)
```
