HomeWildfire Games

Add formation CheckTarget-/MoveToTargetRange-functions.

Description

Add formation CheckTarget-/MoveToTargetRange-functions.

Use CheckFormationTargetAttackRange instead CheckTargetAttackRange for formations to not use that ugly workaround with passing target, target.

Use MoveFormationToTargetAttackRange to achieve better looking behaviour when moving formation to target range.

Differential Revision: https://code.wildfiregames.com/D2015
Patch by: Freagarach
Reviewed by: Angen

Event Timeline

Silier added inline comments.Apr 15 2020, 3:02 PM
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
4615

formation will follow target even if will move out from formation and stops to be relevant for attacking formation