Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I do the raycast shotgun spread?

Asked by 5 years ago

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?

0
wrap it in a "for i = 1, 4" loop hellmatic 1523 — 5y
0
May you provide an example script in the answer section? marltonjohnson9876 11 — 5y
0
You should provide any code you have to prevent your question from being taken down. DeceptiveCaster 3761 — 5y
0
for i = 1, 4 do raycast(randompos()) end SaltyIceberg 81 — 5y

Answer this question