execute at @s run function main:mechanics/raycast/raycast {"folder_location":"characters/gunner/weapon/id1","radius":"~ ~-0.15 ~ 0.1 0.1 0.1 0 1 force","id":id1,"particle_1":ash,"particle_2":"dust{color:[0.0,0.75,1.0],scale:0.5}","distance":450,"type":weapon,"positioned":"positioned ~-0.05 ~-0.05 ~-0.05 as @e[type=#main:gunner,tag=enemy,dx=0,limit=1] positioned ~-0.9 ~-0.9 ~-0.9 if entity @s[dx=0] positioned ~0.95 ~0.95 ~0.95","character":gunner,"x":"~","y":"~","offset":"","offset_2":"","pierce":1}

execute unless entity @a[tag=gunner_weapon_hit] at @s run function main:mechanics/raycast/raycast {"folder_location":"characters/gunner/weapon/id1","radius":"~ ~-0.15 ~ 0.1 0.1 0.1 0 1 force","id":id1,"particle_1":ash,"particle_2":"dust{color:[0.0,0.75,1.0],scale:0.5}","distance":450,"type":weapon,"positioned":"positioned ~-0.5 ~-0.5 ~-0.5 as @e[type=#main:gunner,tag=enemy,dx=0,limit=1]","character":gunner,"x":"~","y":"~","offset":"","offset_2":"","pierce":1}