> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyberpunk-2077-modding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/animations-.anims/npc-animations.md).

# NPC animations

How NPC animations work

## Summary

Created: Jan 02 2025 by [nutboy](mailto:undefined)\
Last documented update: Jan 02 2025 by [nutboy](mailto:undefined)

This page will explain how NPC animations are selected and connected within the files.

### Wait, this is not what I want!

* For a guide on creating a custom NPC, check [AMM: Custom NPCs](https://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/npcs/amm-custom-npcs.md)
* For a guide on creating an even more custom NPC, check [NPV - from scratch with WolvenKit](https://wiki.redmodding.org/cyberpunk-2077-modding/modding-guides/npcs/npv-v-as-custom-npc/npv-v-as-custom-npc.md)

## entAnimatedComponent

The very base for any animations is the entAnimatedComponent with the name of `root`.\
You can usually find it insde the [root entity's](https://github.com/CDPR-Modding-Documentation/Cyberpunk-Modding-Docs/blob/main/for-mod-creators-theory/files-and-what-they-do/file-formats/entity-.ent-files#root-entity) `components` array:

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-188f6ef77a159699fda562297ee87842a8836371%2FentAnim_root.png?alt=media" alt=""><figcaption></figcaption></figure>

`animations.gameplay` animations does...

(we needed to put those, or no photo mode animations. Where are they read? Why aren't they overwritten by SetupExtensionComponents?)

### entAnimatedSetupExtensionComponent

One or more extensions to the [#entanimatedcomponent](#entanimatedcomponent "mention") for different contexts.\
You can usually find them insde the [root entity's](https://github.com/CDPR-Modding-Documentation/Cyberpunk-Modding-Docs/blob/main/for-mod-creators-theory/files-and-what-they-do/file-formats/entity-.ent-files#root-entity) `components` array:

<figure><img src="https://1427525421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4gzcGtLrr90pVjAWVdTc%2Fuploads%2Fgit-blob-d03b0596298181245abd4ffa44cc92efba51777a%2FentAnimExtension.png?alt=media" alt=""><figcaption></figcaption></figure>

As of January 2025, we don't exactly know what they do and where they are read. Maybe ask psi at some point.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.redmodding.org/cyberpunk-2077-modding/for-mod-creators-theory/files-and-what-they-do/file-formats/animations-.anims/npc-animations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
