Zombie Attack-like gun System

Ok so im trying to replicate a free mouse 3rd person gun system like zombie attack. However the issue im having is that i use mouse.hit.position and cast a ray but that can be inaccurate sometimes

Look at the video below:

And it made me curious why their system is so accurate. Wherever it clicks it 100% lands there. Is the method different such as hitscan?

Maybe what it does is launch a ray from the screen and when it hits something the effect is created from the gun.

1 Like