Unit "Rules of Engagement" State
Posted: 17 May 2015, 18:46
I am having trouble getting multi-weapon units to behave how I want them to, mainly because FireState and MoveState are somewhat limited in terms of controlling when, where and how a unit attacks another unit. Specifically, the fact that a unit will stop and engage an enemy as soon as any one of its weapons are in range means a unit with a weak long-range support weapon and a powerful close-range main weapon will stand there firing the weak weapon, rather than close in to engage with its powerful weapon.
The only "way" around this is slaving the longer-range weapon to the short-range weapon but this is not ideal, and only works if the unit is set to hold position.
So I request an additional state command that tells a unit at what range it can stop moving towards a target and just fire. Call it 'engagementState', if you will.
It would have two modes:
Default/Normal/Passive, in which case the unit will behave as it does now, only approaching targets until any of its weapons are in range (aka its longest-ranged weapon starts shooting);
and
Aggressive/Full/etc, in which case the unit will approach the target until ALL of its weapons, or at least its Weapon 1, are in range (but will still fire its long-range weapons as it's closing in).
That is all, thank you for your time!
The only "way" around this is slaving the longer-range weapon to the short-range weapon but this is not ideal, and only works if the unit is set to hold position.
So I request an additional state command that tells a unit at what range it can stop moving towards a target and just fire. Call it 'engagementState', if you will.
It would have two modes:
Default/Normal/Passive, in which case the unit will behave as it does now, only approaching targets until any of its weapons are in range (aka its longest-ranged weapon starts shooting);
and
Aggressive/Full/etc, in which case the unit will approach the target until ALL of its weapons, or at least its Weapon 1, are in range (but will still fire its long-range weapons as it's closing in).
That is all, thank you for your time!