Animation overrides
kNVSE lets you replace an animation group for specific weapons, actors, races, plugins, or all actors without overwriting vanilla KF files.
You can set up overrides in three ways:
- JSON files in
Data\Meshes\AnimGroupOverride(recommended for most mods; supports script conditions, priorities, BSAs, and sharing one animation folder across multiple forms). - Plugin and Form ID folders under
Data\Meshes\AnimGroupOverride. - NVSE scripts using kNVSE’s registration commands.
Folder layout
Section titled “Folder layout”All file-based overrides live under Data\Meshes\AnimGroupOverride:
Data\Meshes\AnimGroupOverride\ MyMod.esp\ Plugin folder (loose files only) _male\ 3rd-person animations for forms from MyMod.esp _1stperson\ 1st-person animations for forms from MyMod.esp 0012AB\ Form ID folder (one form from MyMod.esp) _male\2hrreloadp.kf _1stperson\2hrreloadp.kf MyAnims\ Custom folder referenced by a JSON file ServiceRifle\ _male\2haaim.kf _1stperson\2haaim.kf MyMod.json JSON config file (must be directly in AnimGroupOverride) MyAnims.bsa Optional BSA archive (used by JSON entries)Inside any override folder, kNVSE only scans immediate subfolders named _male (3rd person) and _1stperson (1st person). Other folders placed next to _male and _1stperson are ignored. KF files inside subfolders of _male and _1stperson are also loaded.
Plugin and Form ID folders
Section titled “Plugin and Form ID folders”- Plugin folder: Name a folder after a loaded
.espor.esm(for example,FalloutNV.esmorMyWeaponMod.esp). If that plugin is not in the load order, the folder is skipped. - Plugin-wide animations: Files placed directly under
<Plugin.esp>\_male\or<Plugin.esp>\_1stperson\apply to any actor whose reference, equipped weapon, base form, or race comes from that plugin. - Form ID folder: Create a subfolder inside the plugin folder named after a form’s hex ID. The first two hex digits (the load order index) are ignored and automatically replaced with the plugin’s load order index, so
0012ABandFF0012ABboth resolve to form12ABof that plugin.- Folder names starting with
_are never treated as form IDs. - Non-hex names or missing form IDs are logged and skipped.
- Folder names starting with
- Plugin and Form ID folders only read loose files (they do not read BSAs).
Supported form types
Section titled “Supported form types”A Form ID folder or a JSON form field can target any of these form types:
- An actor reference
- A weapon
- An actor base form (NPC or creature)
- A race
- A form list (
BGSListForm) containing any of the above, including nested form lists
Form lists are expanded once when kNVSE loads overrides. Forms added to a form list later by scripts are not included.
JSON files
Section titled “JSON files”JSON config files must be placed directly inside Data\Meshes\AnimGroupOverride (subfolders are not searched for .json files). Each file must contain a JSON array of entry objects.
Example JSON config
Section titled “Example JSON config”[ { "mod": "FalloutNV.esm", "form": "0E9C3B", "folder": "MyAnims\\ServiceRifle" }, { "mod": "FalloutNV.esm", "form": ["0E9C3B", "0E7E87"], "folder": "MyAnims/ServiceRifleSprint", "condition": "IsKeyPressed 42", "pollCondition": true, "priority": 10 }, { "mod": "OptionalDLC.esm", "folder": "MyAnims/LowHealth", "condition": "GetAV Health < 50" }]JSON fields
Section titled “JSON fields”| Field | Type | Default | Description |
|---|---|---|---|
folder |
string | Required | Path relative to Data\Meshes\AnimGroupOverride containing _male and/or _1stperson. Forward slashes (/) and escaped backslashes (\\) both work. |
mod |
string | none | Plugin filename that owns the form IDs in form. If mod is specified and that plugin is not loaded, the entry is skipped. |
form |
string or array of strings | none | One or more hex form IDs. The load order prefix is replaced with mod’s index. If mod or form is omitted, the entry applies to all actors. |
condition |
string | none | Script expression that must evaluate to non-zero for this override to play. |
pollCondition |
boolean | false |
Re-evaluates condition while looping animations are playing. Requires condition. |
priority |
integer | 0 |
Ordering across all JSON entries. Higher numbers take precedence over lower numbers. |
matchBaseAnimGroup |
boolean | false |
Applies base-group overrides (no weapon-type, sneak/swim, or power armor prefix) to all variants of that base group. See matchBaseAnimGroup below. |
Notes on JSON entries:
- Plugin-wide overrides: JSON entries cannot target an entire plugin by itself. Providing
modwithoutformcreates a global override that only activates whenmodis loaded. Use a plugin folder (MyMod.esp\_male\) for plugin-wide overrides. - Invalid forms: If a valid hex ID in
formdoes not exist inmod, only that form is skipped. If an entry contains a malformed (non-hex) form ID, the entire entry is skipped. - Duplicate folder + form: If two entries point to the same folder for the same form, kNVSE keeps the first entry’s
condition,pollCondition, andmatchBaseAnimGroup, while moving the entry up to the later entry’s priority position. - BSAs and archives: For each JSON entry, kNVSE loads files in three passes so loose files always win:
.bsafiles placed directly inData\Meshes\AnimGroupOverride(reading paths undermeshes\animgroupoverride\<folder>\).- BSAs loaded normally by the game (reading
_male,_1stperson, and their directmod1,mod2,mod3,hurt,human,male, andfemalesubfolders only). - Loose files in
Data\Meshes\AnimGroupOverride\<folder>\.
Conditions
Section titled “Conditions”A condition string is compiled as a script function and executed with the actor as the calling reference. If the script returns a non-zero value, the override is allowed to play.
For single-line expressions, kNVSE automatically wraps the string in SetFunctionValue (...):
"condition": "IsSneaking && GetCurrentAmmoRounds == 0"For multi-line conditions, write the full function body, call SetFunctionValue yourself, and separate lines with %r:
"condition": "int iRounds%rlet iRounds := GetCurrentAmmoRounds%rSetFunctionValue (iRounds == 0)"Conditions are checked each time an animation group is selected. If a condition fails to compile, the override is disabled and the error is written to kNVSE.log.
pollCondition
Section titled “pollCondition”Normally, a condition is only checked when an animation group starts playing. Setting "pollCondition": true tells kNVSE to keep checking the condition while looping animations are active:
- If a higher-priority polled override’s condition becomes true, kNVSE restarts the animation group to switch to it.
- If the currently playing polled override’s condition becomes false, kNVSE restarts the animation group to fall back to the next valid animation.
pollCondition only runs for standard looping groups: Idle, walk/run/strafe (Forward through FastRight), TurnLeft/TurnRight, jump loops, BlockIdle, hand grips, and Aim/AimIS (including their Up/Down variants). Attack loops (AttackLoop*), dynamic/special idles, one-shot animations (attacks, reloads, equips), and script-queued animations (such as QueueNextAnim) are not polled.
matchBaseAnimGroup
Section titled “matchBaseAnimGroup”When "matchBaseAnimGroup": true is set, kNVSE checks the base animation group (stripped of weapon type, sneak/swim, and power armor prefixes) before checking the full animation group.
For example, if you override mtidle.kf with matchBaseAnimGroup: true, that override will play in place of 2haidle.kf, sneak2haidle.kf, pa2haidle.kf, and other weapon/stance variants whenever its condition passes, even if another mod has a weapon-specific override for 2haidle.kf.
File names and variants
Section titled “File names and variants”Mapping filenames to animation groups
Section titled “Mapping filenames to animation groups”Name your KF files after the vanilla animation group you want to replace, such as 2hrreloadp.kf, 1hpaim.kf, sneak2haforward.kf, or mtidle.kf.
kNVSE ignores everything starting from the first _ or space in the filename when identifying the animation group. For example, 2hrreloadp.kf, 2hrreloadp_2.kf, and 2hrreloadp_tactical.kf all map to the 2hrreloadp group.
If the filename does not match any game animation group, kNVSE opens the KF file and reads the animation group stored inside it.
Random and ordered variants
Section titled “Random and ordered variants”All KF files for the same animation group in the same folder (and same conditional subfolder) are grouped into one set.
- Random (default): Every time the animation group plays, kNVSE picks one file from the set at random.
- Ordered (
_order_): If any filename in the set contains_order_, kNVSE sorts the files alphabetically by path and plays them in sequence, wrapping back to the first file after the last.
Example of a 3-step melee combo using _order_:
_1stperson\ 1hmattackleft_order_1.kf 1hmattackleft_order_2.kf 1hmattackleft_order_3.kfEach skeleton tracks its own order counter, so the player’s 1st-person and 3rd-person animations count independently.
For random variants of aim, attack, mine-placement, and throw groups that have Up and Down variants (aimup, aimdown, attack3up, attack3down, etc.), kNVSE matches the variant index of the Up/Down animation to the base animation so pitch blending stays consistent.
Conditional subfolders
Section titled “Conditional subfolders”Placing KF files inside a subfolder with one of the following names restricts them to play only when that condition is met:
| Subfolder | Plays when |
|---|---|
male |
The actor is male. |
female |
The actor is female. |
human |
The actor is the player or an NPC (not a creature). |
hurt |
The actor has crippled legs. |
mod1, mod2, mod3 |
The actor’s equipped weapon has weapon mod slot 1, 2, or 3 attached. |
Example layout for a weapon whose scope is weapon mod 2:
MyAnims\HuntingRifle\ _1stperson\ 2hrAimIS.kf Played when no scope is attached mod2\ 2hrAimIS.kf Replaces the base file when mod 2 is attachedImportant rules for conditional subfolders:
- Conditions do not stack: Each file only gets one folder condition. Nesting two conditional subfolders (such as
_male\female\mod1\) does not require both; kNVSE only applies one of them (mod1). Use a JSONconditionif you need combined conditions. - Avoid these names in parent paths: kNVSE checks the full file path for
\mod1\,\mod2\,\mod3\,\hurt\,\human\,\male\, and\female\. Do not name a parent JSON folderMyMod\female\Rifle, or every animation inside it will inherit thefemalecondition. - Base files go directly in
_male/_1stperson: Files directly inside_maleor_1stpersonare registered first so conditional subfolders override them. Avoid mixing arbitrary non-conditional subfolders alongside conditional subfolders for the same animation group.
Special file names
Section titled “Special file names”Adding certain markers to a KF filename gives it special behavior:
| Filename pattern | Applies to | Behavior |
|---|---|---|
Contains _start |
Walk/run groups (forward to fastright), aimis |
Start transition animation. |
Contains _stop |
Walk/run groups (forward to fastright), aimis |
Stop transition animation. |
Contains _partial |
Reload groups | Played for tactical/partial reloads (rounds remaining in magazine). |
Contains _ammo_swap |
Reload groups | Played when reloading after switching ammo types (player only). |
Ends with _additive |
Weapon-slot groups | Additive animation played on top of the normal animation in the same set. |
Contains __<name> |
Any valid group | Custom animation group that triggers scripted callbacks instead of replacing an animation. |
Start and stop transitions (_start, _stop)
Section titled “Start and stop transitions (_start, _stop)”- Walk and run transitions (requires
bBlendSmoothingandbMovementTransitions):_startplays when an actor begins moving from a standstill (for example,2haforward_start.kf) and hands over to the walk/run cycle at itsEndtext key._stopplays when stopping (for example,2haforward_stop_l.kf,2haforward_stop_r.kf) and blends to idle at itsEndkey. If you provide multiple_stopfiles, kNVSE picks the one whose first frame best matches the actor’s current foot position.- Third-person
_start/_stopfiles do not play while the player is in 1st person unless the KF includes anallowFirstPersontext key.
- Aim transitions (player only; requires
bBlendSmoothing,bFixSpineBlendBug, andbAimTransitions):- Name the files after the
aimisgroup (for example,2haaimis_start.kffor hip-to-sights and2haaimis_stop.kffor sights-to-hip). - If you only provide
_start(or only_stop), kNVSE plays it in reverse when aiming is cancelled mid-transition.
- Name the files after the
A folder containing only _start and/or _stop files adds transitions without replacing the underlying walk, run, or aim animation.
MyAnims\ServiceRifleTransitions\ _1stperson\ 2haaimis_start.kf 2haaimis_stop.kfPartial and ammo-swap reloads (_partial, _ammo_swap)
Section titled “Partial and ammo-swap reloads (_partial, _ammo_swap)”MyAnims\ServiceRifle\ _1stperson\ 2hareloada.kf Full reload (magazine empty) 2hareloada_partial.kf Partial reload (same ammo still in magazine) 2hareloada_ammo_swap.kf Reload after changing ammo type (player only)_partialfiles play when the magazine still has rounds of the same ammo type being loaded._ammo_swapfiles play for the player when reloading after switching ammo types (via the ammo-swap hotkey or the Pip-Boy).- Always include a normal reload KF alongside
_partialor_ammo_swapfiles. A set with only one file always plays that file for every reload, and a set with multiple_partialfiles and no normal reload file falls back to the vanilla animation on full reloads.
Additive overlays (_additive)
Section titled “Additive overlays (_additive)”A file whose stem ends with _additive (such as 2haaim_additive.kf) plays additively on top of the normal animation selected from the same set.
MyAnims\Sway\ _1stperson\ 2haaim.kf 2haaim_additive.kf- Only one
_additivefile is used per set. - An
_additivefile must be paired with at least one normal animation file in the same set (an_additive-only set will not play). - Managed
_additivefiles are intended for weapon-slot animations (aim, attack, reload, equip). For additive animations on other slots, useSetAnimAdditiveandActivateAnim.
Custom animation groups (__<name>)
Section titled “Custom animation groups (__<name>)”A file named <animGroup>__<customName>.kf (using a double underscore, such as mtidle__CustomReload.kf) does not replace any animation. Instead, while any animation from that same _male or _1stperson folder plays, kNVSE runs scripts registered for <customName> via RegisterCustomAnimGroup every frame, passing the custom KF’s path.
The prefix before __ (or the KF’s internal sequence name) must still match a valid game animation group, and the file must reside inside a _male or _1stperson folder.
Special and dynamic idles
Section titled “Special and dynamic idles”Because many distinct animations (idle forms, hit reactions, Pip-Boy actions) share the SpecialIdle and DynamicIdle groups, kNVSE matches overrides in these groups by exact filename. For example, to override pipboy.kf, your file must be named pipboy.kf. Variant suffixes like pipboy_2.kf will not match.
Priority and conflict resolution
Section titled “Priority and conflict resolution”When an actor plays an animation group, kNVSE searches matching overrides in this order and plays the first one whose conditions pass:
- Form-specific overrides, checked in order:
- Actor reference
- Equipped weapon
- Actor base form (NPC or creature)
- Race
- Plugin-wide overrides for the plugins those forms belong to.
- Global (“everyone”) overrides.
(Exception: If a base-group override with matchBaseAnimGroup: true wins for the base group, it runs before weapon-specific or stance-specific overrides.)
When multiple overrides target the same form, plugin, or global level, kNVSE checks them in this order (highest priority first):
- Per-form order saved from the in-game Animations menu.
- Script-registered overrides (last registered wins).
- JSON entries, ordered by
priority(highestprioritywins; ties are broken by JSON filename and entry order, with later entries winning). Within a single JSON entry, loose files beat loaded game BSAs, which beat BSAs placed inAnimGroupOverride. - Plugin and Form ID folders (sorted alphabetically; later names win).
If an override’s condition fails or its conditional subfolder does not match, kNVSE skips it and tries the next override down the list. If no override applies, the vanilla animation plays.
Registering overrides from scripts
Section titled “Registering overrides from scripts”Scripts can add or disable overrides at runtime:
SetWeaponAnimationPath: register a KF or folder for a weapon.SetActorAnimationPath: register for the calling actor, or globally when called without a reference (or for the player whenfirstPersonis1).SetFormAnimationPath: register for any reference, weapon, actor base, race, or form list.CopyAnimationsToForm: copy all registered overrides from one form to another.
Script overrides take priority over folder and JSON overrides on the same form. Calling a registration command again for the same file with a new condition replaces the condition; calling it with enable set to 0 disables that set.
Testing changes without restarting
Section titled “Testing changes without restarting”Run kNVSEReset in the in-game console to rescan Data\Meshes\AnimGroupOverride, reload JSON files, and reload edited KF files from disk the next time they play. Overrides registered by scripts and other plugins are preserved.
In-game Animations menu
Section titled “In-game Animations menu”Open Settings > kNVSE in the main or pause menu and select the Animations tab to inspect and manage overrides without editing files.
- Left panel: Lists every form, plugin, or global target that has overrides, grouped by category. Targets with multiple competing sources show the source count in parentheses.
- Right panel: Lists the sources targeting the selected form in priority order (top is tried first), along with each source’s animations and individual variant files.
- Source checkbox: Enables or disables that source for the selected form only.
- Up / down arrows: Moves a source up or down in priority for the selected form.
- Animation / file checkbox: Enables or disables that KF file across all forms that use it. Toggling an aim or attack animation automatically toggles its matching
UpandDownvariant files as well. - Dimmed entries: Indicate animations that will not play because they are disabled, their condition failed, or a higher-priority unconditional source overrides them.
- Defaults: Resets the selected form’s source order and per-form toggles, and re-enables any disabled files used by that form.
A “source” is a JSON entry’s folder, a plugin folder (MyMod.esp), a Form ID folder (MyMod.esp\0012AB), or a script’s plugin. Note that if multiple mods install loose files into the same plugin folder (such as FalloutNV.esm), they appear together under that single plugin source.
kNVSE_overrides.json
Section titled “kNVSE_overrides.json”Changes made in the Animations menu are saved to Data\NVSE\Plugins\kNVSE_overrides.json when the menu closes. You can also edit this file manually:
{ "disabled": [ "myoldpack\\servicerifle" ], "disabledFiles": [ "animgroupoverride\\myanims\\servicerifle\\_1stperson\\2haaim.kf" ], "order": [ "mypreferredpack\\servicerifle", "fallbackpack\\servicerifle" ], "forms": { "falloutnv.esm:0e9c3b": { "order": [ "mypreferredpack\\servicerifle", "fallbackpack\\servicerifle" ], "disabled": [ "fallbackpack\\servicerifle" ] } }}| Key | Description |
|---|---|
disabled |
Sources disabled globally for every form. Only set by manual editing; re-enabling the source in the in-game menu removes it from this list. |
disabledFiles |
Individual KF paths disabled everywhere (loose files start with animgroupoverride\; archive files start with meshes\animgroupoverride\). |
order |
Global default source priority (first entry is tried first). Manual editing only. |
forms |
Per-form order and disabled lists. Form keys use <plugin>:<6-digit local hex ID> (such as falloutnv.esm:0e9c3b), <plugin> for plugin-wide folders, or everyone for global overrides. |
Form keys omit the load order index, so saved settings survive load order changes. Any newly installed source not yet listed in a saved order array is tried before the previously ordered sources.