Top Down Mouse Look and Spawn Projectile

Hello. I want to make the character to look at mouse location and keep the movement same as the camera location. I made the mouse look but I can’t figure out movement.

I use these:

and I want o spawn projectile at mouse location. I use this but it is not precise.

Can anyone help?

what do you mean with “it’s unprecise”? so it works, just the position is off? Is maybe the object you spawn not centered at (0,0,0) but has instead a corner at (0,0,0) of its local coordinate system?

I managed to make character turn but projectile still not going where the cursor is. I checked its location, it is 0,0,0

I changed copied ‘ProjectileMovement’ from my another project and it worked. It was about that.