Modding: Fog of War

From Noita Wiki
Jump to navigation Jump to search
Modding Navigation
BasicsData.wakGetting startedLua ScriptingUseful Tools
AudioEnemiesEnvironments (Fog of War) • Image EmittersMaterialsPerksSpellsSteam WorkshopSpritesheetsUsing CMake
Component DocumentationEnumsList of all tagsSpecial Tags
Lua Scripting
Lua APIUtility Scripts
Other Information
Enemy Information TableMagic NumbersSound EventsSpell IDsPerk IDsMaterial IDs

Noita's fog of war is implemented in the engine, and it isn't always clear how to work with it using the modding interface. This page is for documenting some of the features, techniques, and quirks that are good to know about when your mod needs to do something with the fog of war.

Player Fog of War Clearing

For an entity to permanently create holes in the fog of war, like the default player entity does, it needs to have the following components:

It is possible to have multiple entities clear the fog of war in this way, but it may cause issues since the game probably doesn't expect multiple entities to simultaneously exist with these components.

Components That Work With the Fog of War

Feel free to expand these items into their own section.