For some reason, the NavMeshBoundsVolume.h is not where it is supposed to be. Instead of being in the AI/Navigation… folder it is in another place altogether, in the NavMesh folder. But it would have been all fine and dandy if the place of the directory was the only problem there is, but if I tried doing anything related to the NavMeshBoundsVolume, whether it is even simply creating a variable of that type then the compilation would give me a horribly lengthy linker error. It is very inconvenient and I have wasted a lot of time trying to fix it, eventually coming to a conclusion of not using NavMeshBoundsVolume.h at all but instead using the GameFramework/Volume.h library, since NavMeshBoundsVolume is a child of it. By finding all the volumes in the world we add a few unneeded things, which I have filtered out by using a Contains function, which finds out whether an FString has a given substring in it or not and returns a bool, which is pretty handy in this situation.
All in all, if someone else has this kind of problem, then I recommend doing it as follows:
Hopefully, this way of doing things will not conflict with anything that will be done in the future lectures. Well, if that will be the case I guess that I will have to find a way out again. Anyways, stay hydrated folks!