How to make z-targeting like Project Soul Skirmish?

I want to make a z- targeting system like the one in the game “project soulskirmish” and the Legend of Zelda Ocarina of Time. I don’t understand how the icon works, nor the black bars that appear at the top and bottom of the screen, nor the camera lerp. Any help is appreciated