Unit focus reset sometimes in melee

Post Reply
Galdred
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 504
Joined: Tue Nov 15, 2011 5:43 am

Unit focus reset sometimes in melee

Post 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.
zakblood
Most Active User 2017
Most Active User 2017
Posts: 16505
Joined: Thu Jun 12, 2014 6:44 pm

Re: Unit focus reset sometimes in melee

Post 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
Galdred
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 504
Joined: Tue Nov 15, 2011 5:43 am

Re: Unit focus reset sometimes in melee

Post 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.
Post Reply

Return to “Sanctus Reach Tech Support”