Space Engineers

Space Engineers

Whip's Weapon Salvo Script
473 Comments
Whiplash141  [author] 10 Jul @ 9:22pm 
You'd need 2 different salvo groups to support that
Sarge38 10 Jul @ 9:18pm 
Hey man!

I am trying to make this work with a salvo of small railguns, however rather than fire EVERY railgun in sequence, I want the script to group 2 railguns and see them as one, so it fires 2 at once, at each point of the salvo (12 guns total, so 6 "double" shots) I am wondering if that is possible with this script?
hugossir12 3 Jul @ 5:56am 
found the error, is there a way to start the next slavo befor the last one finish?
hugossir12 3 Jul @ 5:51am 
*group*
hugossir12 3 Jul @ 5:51am 
what im doing wrong?
1: place a programe block
2: put the script in
3: go at the end of the config page for the programe block where the argument bar is
4: enter "Salvo Grop h" --rpm 1 (to try how it work)
5: go inside the cockpit and fire
6: nothing, the autocanon still shoot around 3 rps each and at the same time (there is 3 autocanon)
hugossir12 3 Jul @ 5:44am 
ok so its only me not knowing how to use it, my bad
Whiplash141  [author] 3 Jul @ 5:43am 
The script works.
hugossir12 3 Jul @ 5:41am 
its just me not knowing how to use script or that script dont work?
Kara Vaki 20 Apr @ 9:16pm 
Holy shit, I just set the custom data for the railguns to be 8 RPS and it went YEET
Kara Vaki 20 Apr @ 7:10pm 
neat!
Whiplash141  [author] 20 Apr @ 5:58pm 
You can certainly change the rate of fire to something faster via arguments or custom data. I personally do a 6 shot burst at 360 RPM for my cruiser
Kara Vaki 20 Apr @ 5:24pm 
I do wonder tho if I could make it fire in a rapid pulse of 8 shots per second.
Kara Vaki 20 Apr @ 5:21pm 
That I have very much noticed since one of my capital ships has a total of 24 railguns, with 8 being in the bow and the rest as twinrail turrets. all of them being large grid btw.
Whiplash141  [author] 20 Apr @ 11:39am 
Lol that tracks. The default ROF that the script computes is what is needed for a "continuous" firing. It just so happens that large grid railguns take around 60 seconds between shots (20 for small grid railguns), so unless you have a bunch, there will be several seconds between shots.
Kara Vaki 20 Apr @ 11:36am 
Nevermind I figured it out, the rate of fire is just SLOW AS MOLASSES XD
Kara Vaki 20 Apr @ 11:04am 
I'm using the latest version
Whiplash141  [author] 20 Apr @ 12:41am 
What version are you running? The most recent version should work fine with vanilla railguns with default settings,
Kara Vaki 19 Apr @ 9:35pm 
Safe to say it seems like I need to set up a few things for it to get a proper salvo going instead of it sputtering.
Kara Vaki 19 Apr @ 9:25pm 
As in when I pull the trigger by holding mouse 1, I have a ship that has a total of 8 railguns on the bow and when I hold down mouse 1 o fire them in sequence they kinda just, turn off way too fast to fire the full salvo.
Whiplash141  [author] 19 Apr @ 9:04pm 
"from the toolbar" meaning toggle fire?
Kara Vaki 19 Apr @ 6:19pm 
If I may ask, how does one get Railguns to fire in a salvo from the toolbar? cause when I tried it with it's base settings it did not seem to work.
McCloud Jr 13 Apr @ 6:41pm 
Just throwing this out there but this works great with Vanilla+ Framework and the Star Wars Weapon Pack (Vanilla+)

I've had zero issues
butcherbrood2 13 Apr @ 4:01pm 
@Whiplash141
Dang... guess i have to do it all manually then
Whiplash141  [author] 13 Apr @ 3:56pm 
That is correct. Weapon core is not compatible with the regular script API sadly
butcherbrood2 13 Apr @ 3:20pm 
@Whiplash141
I believe so, is weaponcore not compatible?
Whiplash141  [author] 13 Apr @ 11:16am 
Are those weapons modded weapon core guns?
butcherbrood2 11 Apr @ 1:45pm 
@Whiplash141
it says 'Salvo group 1'
-ERROR: no weapons in group
it seems that the missiles i am trying to use aren't registering as weapon blocks.
WardenWolf 10 Apr @ 6:35pm 
Ah, makes sense.
Whiplash141  [author] 10 Apr @ 12:19am 
"it actually does work with custom turret controllers if you just salvo the weapons on the controller, even though your notes say otherwise"

Salvo definitely works with CTCs that don't have extra rotors.

The issues come when you have a salvo group on a CTC that has a extra rotor setup controlled by TCES. Because of the limitations of the script API, I can't determine when the CTC is shooting, only when the individual weapons are being fired. I only give the CTC direct control over the weapons on the main rotors because, otherwise, the CTC could select a weapon on a different rotor as an aiming reference. What this means though is that the CTC only sends fire commands to a subset of your weapons. TCES tries to mirror the firing state of the weapons controlled by the CTC to the weapons on your extra rotors, but this means that the salvo script will not *see* that you have stopped firing until the script cycles to a weapon controlled by the CTC.
WardenWolf 9 Apr @ 6:50pm 
@Whiplash141, it actually does work with custom turret controllers if you just salvo the weapons on the controller, even though your notes say otherwise. I built one recently with 16 small railguns just to test, and it worked flawlessly during a meteor storm, scoring 3 hits in one firing sequence. Absolutely flawless, this and the other times it's fired.
WardenWolf 9 Apr @ 12:43pm 
@butcherbrood2, capitalization matters for a lot of things like this. Make sure it's exactly the same everywhere.
Whiplash141  [author] 8 Apr @ 9:02am 
that doesnt sound like the script is even running. What does the the script display in terminal? Any errors?
butcherbrood2 8 Apr @ 5:31am 
@Whiplash141 it fires all weapons at the same time; I have done the same thing with other turrets and it fires in bursts of 1, but it fires all weapons at the same time when I only want to fire one weapon when i press left click.
Whiplash141  [author] 7 Apr @ 9:51pm 
@butcherbrood2:

How many shots does it fire? One from each weapon in your salvo group in sequence? All at once? How many weapons are in the group and does the script see the right number of them?
butcherbrood2 7 Apr @ 2:21pm 
how can i fire a single missile (mod weapon not subgrid) with this? the argument is ["salvo group 3" --burst 1] but it fires all missiles. can someone help?
WardenWolf 10 Feb @ 10:54pm 
Oh, one thing you might want to add to your description: this works with custom turrets, too. I just tested a railgun turret with SALVO. It worked flawlessly. It fired individual shots instead of the whole thing all at once.
Whiplash141  [author] 8 Feb @ 12:19pm 
You can absolutely fire both groups simultaneously with the mouse. I do it all the time. You do not need to trigger them with a timer.

Also, even if you did want to manually trigger them, you still don't need a timer. You can create a (non salvo) group that contains both of your salvo groups and fire them using that container group.

My Weapons Group
-- Salvo Group 1
-- Salvo Group 2

My Weapons Group -> shoot once, etc.
WardenWolf 7 Feb @ 7:10am 
Because then you have to trigger them separately and they won't have the same timing. I mean, you could do two groups and trigger them with Shoot on a timer block, but not quite the same as holding down the mouse button and shooting.
Whiplash141  [author] 7 Feb @ 12:45am 
What is wrong with two salvo groups? Provided they have the same number if weapons, they should remain in sync
WardenWolf 6 Feb @ 3:35pm 
Darn. Was hoping you could do something like 1-1 and 1-2 or 1:0 and 1:1 to group weapons within a salvo.
Whiplash141  [author] 6 Feb @ 1:09am 
Just have two separate salvo groups in that instance
WardenWolf 5 Feb @ 8:23pm 
Is it possible to have sets of weapons within the group? Like 2 and 4 fire at the same time, then 1 and 2 at the same time?
Whiplash141  [author] 24 Jan @ 7:53pm 
alphabetically, if you have twin digits, prefix that single digit numbers with a 0: 01 02 03 etc.
Cap Arcona 24 Jan @ 6:45pm 
Also, how does it determine firing order? It seems like it goes in the order that the blocks are listed in the control panel. This is a little bothersome because the control panel orders weapons categorically (ie, 1,10-19, 2, 20-29, 3, 30-39, etc). Having them fire in a specific order can reduce odd yaw and pitch moments for lower-mass ships that have an absurd number of guns.
Cap Arcona 24 Jan @ 6:25pm 
I've figured out a lot of stuff, but is it possible to set burst limits to mouse-click firing? I know how to pass the argument via timer block but... yeah.
Whiplash141  [author] 20 Jan @ 9:00am 
yes, it should
CDClone 18 Jan @ 6:19pm 
could this work in combination with the turret controller? aka have home made turrets act automaticly like normal, but firering in salvo ?
Fake 17 Jan @ 7:28pm 
Thank you for the response
Whiplash141  [author] 17 Jan @ 5:34pm 
yes, it should
Fake 17 Jan @ 5:32pm 
Does this work with the weapons used on a CUSTOM made turret since theyre made with static weapons anyways?