Question: How can I make 100 arrows go to a random location
[doublepost=1501935893,1501931658][/doublepost]Anyone? I really need this.
code_language.skript:
on leftclick with diamond:
make player shoot a fireball
set {_proj} to last spawned projectile
wait 5 ticks
loop all entities:
if "%loop-entity-1%" = "fireball":
send "%loop-entity-1%"
set {_loc} to location of loop-entity-1
delete loop-entity-1
spawn a armor stand at {_loc}
loop all blocks in radius 15 around {_loc}:
add location of loop-block to {random.location.loop.blocks.meteor::*}
loop all players:
loop 100 times:
set {_number} to a random number between -180 and 180
set {_loc2} to a random element out of {random.location.loop.blocks.meteor::*}
change yaw of {_loc2} to {_number}
make last spawned armor stand shoot an arrow at speed 1 direction from {_loc} to {_loc2}
set {hit.%last spawned projectile%} to true
delete last spawned armor stand