# Actions, Timing & Obstacle Routing

> Direct characters with 26 plain-English actions, automatic prop routing, zebra-crossing awareness, and simple relative timing.

Tell characters what to do in plain English under `action:`. PraisonAI Film handles pathfinding, turning, limb cycles, and obstacle avoidance automatically.

---

## All 26 Built-In Actions

| Group | Actions | Example Step |
|---|---|---|
| **Locomotion** | `walk`, `run`, `wander`, `follow`, `jump`, `fly`, `drive`, `enter`, `exit` | `{who: mira, do: walk, to: bench.front}` |
| **Posture & Gaze** | `sit`, `stand`, `turn`, `face`, `look`, `wait` | `{who: sam, do: sit, on: bench}` |
| **Speech & Gesture** | `say`, `wave`, `nod`, `point` | `{who: mira, do: wave, dur: 1.2}` |
| **Props & Objects** | `reach`, `take`, `put`, `give`, `open`, `close`, `set` | `{who: mira, do: open, what: mailbox.door}` |
| **Custom Keyframes** | `keys` | Fine-grained custom pose animation |

---

## Simple Timing Without Math

Chain steps cleanly using `at`, `after`, `with`, and `delay`:

```yaml
action:
  - {id: walk_in, who: mira, do: walk, to: bench.front, at: 0}
  - {who: mira, do: wave, with: walk_in, delay: 0.4, dur: 1.0}
  - {who: mira, do: say, after: walk_in, text: "Let's walk through this."}
  - {who: sam,  do: nod, after: prev, dur: 0.8}
```

- **`at: 0`** — Start at an exact timestamp (seconds).
- **`after: prev`** — Start immediately when the previous step ends.
- **`after: <id>`** — Start when a specific named step ends.
- **`with: <id>`** — Start at the same moment as another step.
- **`delay: 0.5`** — Wait an extra `0.5` seconds before starting.
- **`dur: 1.5`** — Override how long the action lasts.

---

## Automatic Smart Routing

- **Avoids furniture and people:** `walk` and `run` compute collision-free paths around every solid prop and other cast members.
- **Yields cleanly:** If two walking paths cross, one character automatically pauses briefly to let the other pass.
- **Zebra crossings & traffic lights:** On street sets, characters cross roads via the nearest zebra crossing and wait at the curb for a green signal.

## Related pages

- [How a Film File Works](https://film.praison.ai/docs/features/film-yaml.md)
- [Camera Presets & Framing](https://film.praison.ai/docs/features/cameras.md)
- [Built-in Sets & Environments](https://film.praison.ai/docs/features/sets.md)
