How to ignore Z value when searching in vector array?

Hello Unreal Community

I am making a game in which I want to have a value in an array saved plus its coordinates. For that I use the X and Y coordinates to save the location and the Z axis to store my value. But when searching for an array I just want to search based on the X and Y coordinates because I don’t know the Z Value. Is there any way to ignore the Z axis in the item search?

If there is only possible location for each X/Y coordinate, so there is no tile above another one, then you could have a look at Maps: Blueprint Maps | Unreal Engine 4.27 Documentation

Maps let your pair two values together, so you could have a map that pair a vector2D or a vector3D with Z set to zero to the actual location which has a the whole location.