Blockland Forums > Modification Help
Using multiple raycasts with the same weapon image?
(1/2) > >>
FrogFreak:
 Would anyone know how to use two or more raycasts with the same weapon image? Basically, I'm looking into a laser pointer on a weapon but have been having issues, so I thought of using two raycasts to do the job of pointing then also actually firing the weapon.
CityRPG:
Raycasts are 100% script. You could do hundreds in one function if you want. The way that raycast sniper rifles work is by using multiple 100 distance raycasts to ensure accuracy.
FrogFreak:
I've look at a script that used a raycast, but I didn't see anything in the fire function that hinted to using a specific raycast.
CityRPG:
Look for a Support_Raycast.cs in the file. Most raycasting weapons use what I called the "Spacecasting" system which was developed by SpaceGuy and tweaked by yours truly.
FrogFreak:
Alright, I'll check into that.
Navigation
Message Index
Next page

Go to full version