object - commandobject - unit - tank - harvester


int SetHarvesterBuilding(unit uBuilding)

Scope: private

Parameters
uBuilding - Refinery or Transport Base building, null to remove current setttings.

Return values
True if uBuilding were set as destination building, false otherwise.

Description
This function is used to set building to which we will be carring harvested resources. Coordinates of "Put" point for this building can be obtained by functions GetHarvesterBuildingPutLocationX, GetHarvesterBuildingPutLocationY and GetHarvesterBuildingPutLocationZ.

See also
GetHarvesterBuilding, GetHarvesterBuildingPutLocationX, GetHarvesterBuildingPutLocationY, GetHarvesterBuildingPutLocationZ