Page 1 of 1
CXOff::HasTargets() Question
Posted: Tue Jul 14, 2015 6:49 pm
by Marching Thru Georgia
Does CXOff::HasTargets() return true only if the target in front of the officer or does it return true if there is a target anywhere around the officer?
Re: CXOff::HasTargets() Question
Posted: Tue Jul 14, 2015 8:39 pm
by mitra76
It returns true if any of level 6 subunits under the officer has a target (the direction is not important)
Re: CXOff::HasTargets() Question
Posted: Tue Jul 14, 2015 8:58 pm
by Marching Thru Georgia
On a related topic, does CXOff::Fighting() return true if the unit is firing at a target, or does it return true if there is a target in range regardless of direction?
Re: CXOff::HasTargets() Question
Posted: Tue Jul 14, 2015 9:07 pm
by mitra76
return true if at least one unit under the officer can fight (is not routed and has men>0) and it is in one of these states:
eUnitLoad
eUnitRam
eUnitShoot
eUnitMelee
eUnitCharge
eUnitAdvance
eUnitFallback
Re: CXOff::HasTargets() Question
Posted: Tue Jul 14, 2015 9:30 pm
by Marching Thru Georgia
Are eUnitLoad or eUnitRam true if the enemy is behind the unit and the unit is unable to rotate to face him?
Re: CXOff::HasTargets() Question
Posted: Tue Jul 14, 2015 9:50 pm
by mitra76
they are collateral to the firing so it can happen only if the unit has just stop to fire and still not checked there's not possibility to shot to any possible target
Re: CXOff::HasTargets() Question
Posted: Thu Jul 16, 2015 12:28 am
by Marching Thru Georgia
Does CXOff::HasTargets() return true if the target is blocked?
Re: CXOff::HasTargets() Question
Posted: Thu Jul 16, 2015 12:35 am
by mitra76
If a enemy in range is blocked is not in the target list of unit, but only in his enemy list, so the single unit cannot report true to the officer, but of course if it is not blocked for another unit of officer you will have true from this last.
Re: CXOff::HasTargets() Question
Posted: Thu Jul 16, 2015 2:01 am
by Marching Thru Georgia
Does CXOff::WheelToTarget(CXUnit) cause all the sub-units to rotate towards the target?
Re: CXOff::HasTargets() Question
Posted: Thu Jul 16, 2015 2:25 am
by mitra76
No only the officer