object - commandobject - platoon


void CannonFireGround(int nUnit, int nCannonNum, int nX, int nY, int nZ, int nShootCount)

Scope: private

Parameters
nUnit - unit number
nCannonNum - cannon number.
nX - X-coordinate of point we have to shoot.
nY - Y-coordinate of point we have to shoot.
nZ - Z-coordinate of point we have to shoot.
nShootCount - shoot count to fire.

Return values
none

Description
This function orders cannon number nCannonNum to fire nShootCount-shoots to point (nX, nY, nZ).

If nCannonNum == -1 order is given to all cannons in tank.
If nShootCount == -1 cannon will fire only once.

if nUnit == -1 order is sent to all units

See also