I'm looking to rotate the bullets being shot based on the amount, I'm not sure how to do so (ex. if I chose 3 for bullet amount, it'd shoot like a shotgun in a cone). I'm new to godot so sorry If there's a very easy and clear answer that I should know about already.
My function:
#spawning
for i in info["bullet_amount"]:
var bullet = bullet_path.instance()
bullet.position = $Position2D.global_position
bullet.rotation = self.rotation #rotate base on amount
get_parent().get_parent().add_child(bullet)
#moving
bullet.speed = info["bullet_speed"]
bullet.velocity = get_global_mouse_position() - bullet.position #moves in another script