This is used by the watersword: Code: "firePosition" : [15.5, 4.5], Btw, what the watersword does is something else, I think it randomizes the projectiles from within the "swoosh" projectile. Code: { "projectileName" : "waterswoosh", "frames" : "waterswoosh.png", "animationCycle" : 0.2, "level" : 1, "frameNumber" : 3, "speed" : 0, "orientationLocked" : true, "damagePoly" : [ [-40, 24.5], [3.5, 24.5], [15.5, 21.5], [28.5, 15.5], [36.5, 7.5], [40.5, -1.5], [40.5, -12.5], [32.5, -24.5], [-12, -24.5] ], "animationLoops" : false, "piercing" : true, "flippable" : true, "damageKind" : "slash", "effectSources" : [ "sparkles" ], "actionOnReap" : [ { "action" : "projectile", "type" : "bubbles", "fuzzAngle" : 10, "inheritDamageFactor" : 0.2, "angleAdjust" : 35 }, { "action" : "projectile", "type" : "bubbles", "fuzzAngle" : 10, "inheritDamageFactor" : 0.2, "angleAdjust" : -35 }, { "action" : "projectile", "type" : "bubbles", "fuzzAngle" : 10, "inheritDamageFactor" : 0.2, "angleAdjust" : 1 }, { "action" : "projectile", "type" : "bubbles", "fuzzAngle" : 10, "inheritDamageFactor" : 0.2, "angleAdjust" : -18 }, { "action" : "projectile", "type" : "bubbles", "fuzzAngle" : 10, "inheritDamageFactor" : 0.2, "angleAdjust" : 18 } ] } Perhaps this will give you ideas, but you'll need a custom projectile and you need to find a setting to change its spawning location
Check these out btw https://github.com/olrad/StarboundTypes/blob/master/types/projectile.txt https://github.com/olrad/StarboundTypes/blob/master/types/gun.txt
ehhhhh and what is this for? I understand that there are the variable types for each "*" , but i feel like i missed something.
First one shows all variables for projectiles, second one shows all variables for guns, helpful when modding. The only way your minigun can be made atm I think is by faking it with a particle effect and using invisible bullets, but it wouldn't look as cool and might even look weird at times.
How about this: Code: Math.floor(Math.random(5)+1) With the 5 being any number you want, so your code would be: Code: "fireposition" : Math.floor(Math.random(5)+1),
Damn, it's only supported by random guns... How awkward. You can do something like with the watersword, projectiles that shoot in different directions, or you can try to use Code: "spread" : 3 with a high fire rate. It will shoot multiple bullets at the same time, but they will be randomly angled. I think it will work well for a minigun.
yeppp ill try that out. An other idea: I could make a random gun. The shields are random too, so why shouldnt it work with guns?