I'm not sure how to even start with an idea of spread when it comes to raycasting. I was only taught how to do a normal raycast. To make this seem like a real question, I'll ask this: How should I script the spread of the raycasting to simulate a shotgun effect?

4 comments

0

wrap it in a "for i = 1, 4" loop

0

May you provide an example script in the answer section?

0

You should provide any code you have to prevent your question from being taken down.

0

for i = 1, 4 do raycast(randompos()) end