I'm currently attempting to re-create a Shotgun type of spread. Hopefully most people are familiar with Shotgun spreads.
The black + is where my Cross-hair is located. I've tried messing with the directions expression with my script, but I can't figure out how to solve this.
Code:
Thanks for your help!
The black + is where my Cross-hair is located. I've tried messing with the directions expression with my script, but I can't figure out how to solve this.
Code:
code_language.skript:
else if "%name of bow%" = "&cSPAS-12":
cancel event
if event-player's inventory contains arrow with name "&712 Gauge":
broadcast "&7Arrow Speed &f%arrow speed%"
set {_arrowSpeed} to arrow speed * 1.5
broadcast "&7New Arrow Speed &a%{_arrowSpeed}%"
remove 1 arrow named "&712 Gauge" from event-player's inventory
make the player shoot an arrow at velocity {_arrowSpeed} #0.5 meters to the right
make the player shoot an arrow at velocity {_arrowSpeed} #0.5 meters above
make the player shoot an arrow at velocity {_arrowSpeed} #0.5 meters to the left
make the player shoot an arrow at velocity {_arrowSpeed} #0.5 meters below
# the `0.5 meters` spawn the arrows but going towards the direction they are set to
playSound("random.break", 0, "%event-player%")
Thanks for your help!