How to create fog of war for a rts game in ue4?

Im trying to create a rts game and im stuck at creating the fog of war.
Do u know were i could get started with this?

I don’t have any links, though there might be something in the Tutorials or Blueprint section of the forums.

If I were to make a fog of war right now I would create a grid covering the map and reference it when hiding and un-hiding enemy units in the game. You would also use the grid to hide and un-hide the visual effects of the fog of war when units come in and out of range.

https://forums.unrealengine.com/community/community-content-tools-and-tutorials/1411677-blueprint-only-fog-of-war-using-render-target

There’s a good RTS plugin repository on GitHub that I will be using for my RTS game. It has a lot of important features already implemented. Up to you if you want to implement or just learn from it:

Fog of war stuff:

https://github.com/npruehs/ue4-rts/blob/develop/Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Classes/RTSFogOfWarActor.h

https://github.com/npruehs/ue4-rts/blob/develop/Source/RTS/Plugins/RTSPlugin/Source/RTSPlugin/Private/RTSFogOfWarActor.cpp