tag @s add gunner_q
kill @e[type=block_display,tag=id1_gunner_q_projectile]
#cooldown
execute if entity @s run function main:settings/stats/cooldown/calculation {"cooldown":2,"type":q}
scoreboard players set @s q_duration_t 120

execute unless entity @e[type=block_display,tag=id1_gunner_q_projectile] at @s anchored eyes run function main:mechanics/projectile/projectile {"id":id1,"character":gunner,"type":q,"distance":40,"texture":"minecraft:spruce_fence_gate","size":"0.5f,0.5f,0.5f","translation":"-0.1f,-0.2f,-0.1f","x":"~","y":"~","angle_1":"~","angle_2":"~","pierce":1,"position":""}

execute as @e[type=block_display,tag=id1_gunner_q_projectile] run scoreboard players set @s gunner 1

playsound entity.player.attack.sweep master @a ~ ~ ~ 3 2

execute at @s run summon marker ~ ~ ~ {Tags:["gunner_marker"]}
execute as @e[type=marker,tag=gunner_marker] at @s run tp @s ~ ~ ~ facing entity @n[type=block_display,tag=id1_gunner_q_projectile]
execute at @s run summon marker ~ ~ ~ {Tags:["gunner_marker_aim"]}
execute as @e[type=marker,tag=gunner_marker_aim] at @s run tp @s ~ ~ ~ facing entity @n[type=block_display,tag=id1_gunner_q_projectile]