# C_ScriptedAnimations: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_ScriptedAnimations

## Functions

### C_ScriptedAnimations.GetAllScriptedAnimationEffects

```lua
scriptedAnimationEffects = C_ScriptedAnimations.GetAllScriptedAnimationEffects()
```

Returns:
- `scriptedAnimationEffects`: ScriptedAnimationEffect[]

## Events

### SCRIPTED_ANIMATIONS_UPDATE

No payload.

## Tables

### Enum.ScriptedAnimationBehavior (enumeration)

- `None` = 0
- `TargetShake` = 1
- `TargetKnockBack` = 2
- `SourceRecoil` = 3
- `SourceCollideWithTarget` = 4
- `UIParentShake` = 5

### Enum.ScriptedAnimationFlags (enumeration)

- `UseTargetAsSource` = 1

### Enum.ScriptedAnimationTrajectory (enumeration)

- `AtSource` = 0
- `AtTarget` = 1
- `Straight` = 2
- `CurveLeft` = 3
- `CurveRight` = 4
- `CurveRandom` = 5
- `HalfwayBetween` = 6

### ScriptedAnimationEffect (structure)

- `id`: number
- `visual`: fileID
- `visualScale`: number
- `duration`: number
- `trajectory`: ScriptedAnimationTrajectory
- `yawRadians`: number
- `pitchRadians`: number
- `rollRadians`: number
- `offsetX`: number
- `offsetY`: number
- `offsetZ`: number
- `animation`: number
- `animationSpeed`: number
- `alpha`: number
- `useTargetAsSource`: bool
- `startBehavior`: ScriptedAnimationBehavior, may be nil
- `startSoundKitID`: number, may be nil
- `finishEffectID`: number, may be nil
- `finishBehavior`: ScriptedAnimationBehavior, may be nil
- `finishSoundKitID`: number, may be nil
- `startAlphaFade`: number, may be nil
- `startAlphaFadeDuration`: number, may be nil
- `endAlphaFade`: number, may be nil
- `endAlphaFadeDuration`: number, may be nil
- `animationStartOffset`: number, may be nil
- `loopingSoundKitID`: number, may be nil
- `particleOverrideScale`: number, may be nil

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
