FIGHT command attacks invalid targets

FIGHT command attacks invalid targets

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

FIGHT command attacks invalid targets

Post by Argh »

FIGHT command can cause Units to attack targets that are invalid. I have LuaRules preventing certain Units from being targeted by a command.

FIGHT attacks them anyhow (useless, because they can't damage the target). It seems to completely ignore that I am canceling the command, in fact :P

I've tested, and it appears that when PATROL is set, this doesn't seem to cause the problem. If they are set on MOVE, they also continue to engage only valid targets, while moving forward.

It would appear that FIGHT not only keeps attempting to issue ATTACK commands every gameframe, but that somehow it's not being canceled. This leads to the irritating spectacle of watching Units that have to deploy (i.e. stop moving to fire) getting "fixated" on things they can't kill. For now, I'll just disable the FIGHT command entirely, but I wanted to make sure that this bug was reported.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: FIGHT command attacks invalid targets

Post by Tobi »

Try a development build. (In particular fight/patrol for units on hold pos.)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: FIGHT command attacks invalid targets

Post by Argh »

I'll take a look at that. As I said, it's an odd behavior that I can deal with, it was just an unpleasant surprise in testing.
Post Reply

Return to “Help & Bugs”