Space Engineers

Space Engineers

Not enough ratings
Autofire
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.924 KB
25 Jun, 2015 @ 5:09am
22 Jul, 2015 @ 1:04pm
2 Change Notes ( view )

Subscribe to download
Autofire

Description
A simple, easy-to-use script for firing slow weapons in a staggered pattern. Perfect for keeping your missiles from exploding each other, or for setting up barrages of long guns.

To set up:
1) A programmable block. Put this script in it.
2) A timer block named "Gun Timer", which triggers itself and the programmable block.
3) Set up your hotbar to run the programmable block with the argument "toggle".

Advanced features:
A) Timers that get called when the mode changes
B) Alter the speed of the autofire to match your weapon setup
C) Ignore weapons with "manual" in the name, so gatling weapons don't screw you up.
D) Use "reload" command if you put more guns in - due to memory leaks, Thor does not search for guns every tick.

Please read the comments at the top of the script for more advanced functionality.

If you have a hard time setting it up, this ship is an example: http://steamproxy.net/sharedfiles/filedetails/?id=468827807
23 Comments
Jolly 26 Sep, 2020 @ 10:11am 
@OH MY GOD, WE'RE DOOMED!
Just fyi Craig Perko quit Space Engineers many years ago, there are better scripts out there for this.
OH MY GOD, WE'RE DOOMED! 26 Sep, 2020 @ 9:57am 
35mm inky steel works cannon x4 on my ball turret. This is gonna be fun... :)))
Jolly 21 Sep, 2017 @ 12:08pm 
I've won many dog fights with this program
Craig P  [author] 21 Sep, 2017 @ 11:46am 
:D
SoulTechnology 21 Sep, 2017 @ 11:40am 
well good news... ig ot it to work.... nothing beats 6 50mm cannons acting as one big fuckoff gatling gun. this may be a wee bit op.
Craig P  [author] 21 Sep, 2017 @ 10:12am 
It detects all weapons, but it's quite old. I'm not 100% sure it still works.

The problem with your idea is that it's a bit hard to know what a modded weapon actually is. So I went for "max generic" back when I programmed this.
SoulTechnology 21 Sep, 2017 @ 8:36am 
however since your a dev who responds and im messing wiht it right now. does this work with modded wepons or does it only detect the stock game gat and missile?
SoulTechnology 21 Sep, 2017 @ 8:34am 
gg, i see what you did there.... nah i thought this was gonna be a retardedly overcomplicated wall of text but its allot mroe straightforwards and simplified then i was expecting. tks
Craig P  [author] 21 Sep, 2017 @ 8:32am 
Sure, that's possible. Someone should program that!
SoulTechnology 21 Sep, 2017 @ 8:24am 
would it be possible to make a more advanced version of this that auto detects the selected wepon (or if not detects via special naming convention) and gets it rate fo fire data and the number of said wepon on the ship. and when you click to fire it sequenshally fires autmaticlaly? less setup and more universal + means you are 'firing' the guns instead of 'toggling' them.