Modding: Fog of War
Jump to navigation
Jump to search
Fundamentals |
---|
Basics • Data.wak • Getting started • Lua Scripting • Useful Tools |
Guides |
Audio • Enemies • Environments (Fog of War) • Image Emitters • Materials • Perks • Spells • Steam Workshop • Spritesheets • Using CMake |
Components/Entities |
Component Documentation • Enums • List of all tags • Special Tags |
Lua Scripting |
Lua API • Utility Scripts |
Other Information |
Enemy Information Table • Magic Numbers • Sound Events • Spell IDs • Perk IDs • Material 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:
- CharacterDataComponent
- CharacterPlatformingComponent
- ControlsComponent
- Inventory2Component
- PlatformShooterPlayerComponent
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.
- Documentation: FogOfWarRadiusComponent
- Documentation: FogOfWarRemoverComponent
- Documentation: SpriteComponent (Using the
fog_of_war_hole
member) - Documentation: WorldStateComponent (Using the
open_fog_of_war_everywhere
member) - Documentation: MusicEnergyAffectorComponent (Using the
fog_of_war_threshold
member) - Documentation: AudioComponent (Using the
play_only_if_visible
member)