Page 1 of 1

Unit focus reset sometimes in melee

Posted: Fri Jan 20, 2017 2:33 pm
by Galdred
Sometimes, when one of my unit hits another unit in melee, the focus resets (ie I have to reclick on my unit to issue other orders).
I think it happens whenever the target is not a vehicle.

Re: Unit focus reset sometimes in melee

Posted: Fri Jan 20, 2017 2:37 pm
by zakblood
yes had the same thing as well which was different from the beta, so either it's new and WAD, or is something else, but posted here the developer will see and comment on it thanks either way and give us a reply

Re: Unit focus reset sometimes in melee

Posted: Fri Jan 20, 2017 2:55 pm
by Galdred
EDIT: Gotcha: it happens whenever you attack an infantry unit in melee that does not fall back (ie a melee infantry unit).
Edit mk2: it also happens whenever you attack vehicles, as they never fall back.
Commenting the line SetCurrentSelectedUnit(-1); in melee.bsf (line 2497, function Unit_melee and another similar one further in the function) solves the problem.