object - commandobject - unit


int OnCannonEndFire(int nCannonNum, int nEndStatus)

Scope: public

Parameters
nCannonNum - number of cannon which called event.
nEndStatus - end fire status:
endCannonFireNoTarget - target we fire to doesn't exist,
endCannonFireNotInRange - target we fire to is out of range,
endCannonFireNoAmmo - out of ammo in cannon.

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

Description
This event is called by cannon after end of fire to current target.
Returned value isn't important.

See also