Modding: Fog of War

From Noita Wiki
Jump to navigation Jump to search
Modding Navigation
Fundamentals
BasicsData.wakGetting startedLua ScriptingUseful Tools
Guides
AudioEnemiesEnvironments (Fog of War) • Image EmittersMaterialsPerksSpecial BehaviorsSpellsSpritesheetsSteam WorkshopUsing CMake
Components/Entities
Component DocumentationEnumsList of all tagsSpecial TagsTags SystemUpdate Order
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.