Using execute as @p offset ^ ^1 ^1 run summon minecraft:arrow will execute as if its being run off the command block. If its used with functions in the game's datapack, it won't do anything.
Using execute as @p offset ^ ^1 ^1 run summon minecraft:arrow will execute as if its being run off the command block. If its used with functions in the game's datapack, it won't do anything.
The command is adding an offset based on the player's rotation to the command position, which is at the command block. To fix this, add
at @s
like so: