CXOff::HasTargets() Question

A new section for modding SOW Waterloo. Ask questions, post tips here.
Post Reply
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

CXOff::HasTargets() Question

Post 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?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: CXOff::HasTargets() Question

Post by mitra76 »

It returns true if any of level 6 subunits under the officer has a target (the direction is not important)
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: CXOff::HasTargets() Question

Post 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?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: CXOff::HasTargets() Question

Post 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
Last edited by mitra76 on Tue Jul 14, 2015 9:14 pm, edited 1 time in total.
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: CXOff::HasTargets() Question

Post 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?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: CXOff::HasTargets() Question

Post 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
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: CXOff::HasTargets() Question

Post by Marching Thru Georgia »

Does CXOff::HasTargets() return true if the target is blocked?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: CXOff::HasTargets() Question

Post 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.
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: CXOff::HasTargets() Question

Post by Marching Thru Georgia »

Does CXOff::WheelToTarget(CXUnit) cause all the sub-units to rotate towards the target?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: CXOff::HasTargets() Question

Post by mitra76 »

No only the officer
Visit my wargames blog: http://warforgame.blogspot.it/
Post Reply