Started by
dkrdjdi
on
Topic category: User side tutorials
Triggers : https://imgur.com/a/jWYRwRz
Code : for (int i = 0; i < 5; i++)
*In the code, the value 5 means the number of projectiles.
Image for reference : https://imgur.com/a8KvSfj
*The higher the value of the part of the code with 15f, the more it spreads.
[Tutorial] : https://youtu.be/Qsx3-cDc6No
for (int i = -2; i < 5; i++)
_entityToSpawn.shoot(_shootFrom.getLookAngle().x + i * 0.1, 0, _shootFrom.getLookAngle().z + i * 0.1, 1, 0);
If you want to spread it more neatly, modify the code like this.