Make units with paralyzer weapons target units that aren't->

Make units with paralyzer weapons target units that aren't->

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Make units with paralyzer weapons target units that aren't->

Post by Forboding Angel »

paralyzed? As in, dynamic target switching when current target is paralyzed. Does this widget exist?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Make units with paralyzer weapons target units that aren

Post by Silentwings »

Paralyser units that have another target waiting in their command queue (or which have a fight command) will move on to attack the next target automatically once the current target is paralysed.

So I'm not sure what you're looking for.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make units with paralyzer weapons target units that aren

Post by Forboding Angel »

But in order to do that they must have another target in their queue, so if they are auto targeting, then they won't have another target in their queue.

That's the problem. When auto attacking, I would like for paralyzer units to paralyze then move on to the next available non-paralyzed target.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Make units with paralyzer weapons target units that aren

Post by Silentwings »

Have you tried a fight command? As far as I can see that will make them do what you are wanting.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Make units with paralyzer weapons target units that aren

Post by Floris »

Ever since some targeting change, I find it hard to control paralyzers. I used to select a bunch, then rightclickdrag on enemy units and off they went. This doesn't work anylonger.

And using patroll isn't efficient at all.

Whats the proper way nowadays?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Make units with paralyzer weapons target units that aren

Post by Silentwings »

Ever since some targeting change, I find it hard to control paralyzers. I used to select a bunch, then rightclickdrag on enemy units and off they went. This doesn't work anylonger.... Whats the proper way
I can't answer because this gives me no information on what you expect to happen or what you think changed. I have always used area attack (left click drag), or fight.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Make units with paralyzer weapons target units that aren

Post by Floris »

left-click drag? I used to use right-click drag... k
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make units with paralyzer weapons target units that aren

Post by Forboding Angel »

Ugh, that's trappy behavior.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Make units with paralyzer weapons target units that aren

Post by Anarchid »

I think you can always AllowWeaponTarget for this purpose.

Embracing its use also enables behaviours such as switch to shoot on radar, prioritization on any custom properties (capture progress, emp rate), only shooting certain units when ordered, etc.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Make units with paralyzer weapons target units that aren

Post by Forboding Angel »

Anarchid wrote:I think you can always AllowWeaponTarget for this purpose.
Wiki has no info?
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Make units with paralyzer weapons target units that aren

Post by Anarchid »

Wiki has no info?
That is incorrect, but is excusable since callins are sometimes hard to find.

Scroll down from here, or just ctrl+f.

I think you can pretty easily implement "target only on order" by checking if the unit has an actual attack order on the given target. This won't really discriminate against automatic attack orders though.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Make units with paralyzer weapons target units that aren

Post by FLOZi »

Anarchid wrote:
Wiki has no info?
That is incorrect, but is excusable since callins are sometimes hard to find.

Scroll down from here, or just ctrl+f.

I think you can pretty easily implement "target only on order" by checking if the unit has an actual attack order on the given target. This won't really discriminate against automatic attack orders though.

Just FYI, that page is horrible and outdated:

http://springrts.com/wiki/Lua:Callins#A ... aponTarget

(Just FYI ^that page is somewhat future looking so might not be 100% noob-friendly for Spring 98)
Post Reply

Return to “Lua Scripts”