execute store result storage pctf:distance input.x1 int 1 run data get entity @s Pos[0]
execute store result storage pctf:distance input.y1 int 1 run data get entity @s Pos[1]
execute store result storage pctf:distance input.z1 int 1 run data get entity @s Pos[2]

execute as @a[tag=bow_attacker] at @s store result storage pctf:distance input.x2 int 1 run data get entity @s Pos[0]
execute as @a[tag=bow_attacker] at @s store result storage pctf:distance input.y2 int 1 run data get entity @s Pos[1]
execute as @a[tag=bow_attacker] at @s store result storage pctf:distance input.z2 int 1 run data get entity @s Pos[2]
function pctf:logic/player/death_messages/killed_bow/get_distance with storage pctf:distance input
function pctf:logic/player/death_messages/killed_bow/message with storage pctf:distance input