pin without pinning

To place it in front of the player, I’d do this:
X = Player.x + cos(player.angle)*offset
Y = Player.y + sin(player.angle)*offset
You can put it behind the player using subtraction instead, and you can swap sin and cos for x and y to put it beside them.
This is also basically how you would pin objects to an object without the Pin behavior.