is it possible to locate entity within 0.5 blocks of @s?

so am making a gun and bullet block hitscan is working perfectly its milssing mob hitscan, i tried @e[distance=] but i cant get it to work
Continue to help post