Page 1 of 1

fire once

Posted: 16 Jan 2009, 08:54
by el_matarife
BeefofAges and I have been discussing a new widget for managing strategic weapons. Basically, the concept is a button that will fire one round, no matter how many units you have selected. Here's the use case: You've built multiple nuke launchers and bound them to one keygroup, but when you hit attack they all launch a nuke on that target.

The "Fire Once" widget would fire only once from that group, preferably from the one farthest from the target. You could also use it to queue attacks, since right now you can't easily queue nuclear strikes across multiple launchers without a lot of micro.

This would benefit any stockpiling weapon, and possibly also LRPCs or other slow reloading weapons if you want to micro every shot taken. For instance, you could set two fire once commands and turn on repeat to alternate fire across the two targets.

Does this sound like something one of you Lua experts might be interested in? Is it possible with the current API functions?

Re: "Fire Once"

Posted: 16 Jan 2009, 08:58
by thesleepless
great idea, it would need to check which ones are out of ammo and skip them until it finds one, then fire that and end. doesn't sound too impossible!

Re: "Fire Once"

Posted: 16 Jan 2009, 21:31
by CarRepairer
This is how spellcasters work in Warcraft III. This is most definitely possible in lua and a very good idea. Here's a suggestion: if you have 3 nux selected, use the meta key (usually spacebar) by holding it while right clicking on an enemy. Then only one of your nux fires at it, and is then removed from your selection leaving you with 2 nux selected. Repeat as necessary.