object - commandobject - unit - tank - supplier


int SetSupplyCenterBuilding(unit uBuilding)

Scope: private

Parameters
uBuilding - pointer to Supply Center building from which ammo will be loaded, null if we are clearing this pointer.

Return values
True if building were set, false otherwise.

Description
This function is used to set building from which ammo will be loaded. If this building will receive ammo request from objects, then will send command MoveToSupplyCenterForLoading tu us.

See also
GetSupplyCenterBuilding, MoveToSupplyCenterForLoading