execute at @n[tag=commander,tag=loading,predicate=survivalplus:isaggro] positioned ~ ~1.5 ~ if entity @e[tag=specialarrow,distance=...5] as @e[tag=specialarrow,distance=...5] run function survivalplus:tools/archer/commando/reload
execute at @n[tag=commander,tag=!loading,predicate=survivalplus:isaggro] if entity @e[predicate=survivalplus:targetinrange2] positioned ~ ~1.5 ~ if entity @e[tag=specialarrow,distance=...5] as @e[tag=specialarrow,distance=...5] run function survivalplus:tools/archer/commando/reload
execute at @n[tag=commander,tag=!loading,predicate=survivalplus:isaggro] positioned ~ ~1.5 ~ if entity @e[tag=specialarrow,distance=...5] as @e[tag=specialarrow,distance=...5] run function survivalplus:tools/archer/commando/arrow
execute at @n[tag=commander,tag=!loading,predicate=survivalplus:isaggro] run particle smoke ~ ~1.5 ~