object - commandobject - unit


int OnCannonFoundTarget(int nCannonNum, unit uTarget)

Scope: public

Parameters
nCannonNum - number of cannon which called event.
uTarget - found target.

Return values
true - if script handled event.
false - if script dosn't handled event.

Description
This event is called by cannon with set automatic target search mode after finding target uTarget.
If script will return false cannon will start to fire to this target, if return true cannon will again search target.

See also
SetCannonFireMode