I’ve looked for a script and i’ave tried making invisable bullets which trigger an on collision function which tells a script to turn on but that only fired from the spawn which wasn’t the exact poistion of the mouse pointer.
So i’ave decided to use raycasting and i have absouteley no idea how to do it so i’ave turned to your help.
I have a script where i would like the ray to orginate from maincam inside the first person controller. I’ve also sorted the unit move script but i need it to detect when the ray hits the unit it activates a bool value called “on”, and i would like it so someone sends me a link to a nice website which is very detailed and helpful. basically i would like a website which tells me how to setup a ray send a ray and detect a ray when it hits an object with a tag called unit.
so in simple talk please may you give me a link to where i can find all the infomation out or tell me, the choice is yours