object - commandobject - unit - tank - carrier


int SetSourceBuilding(unit uBuilding)

Scope: private

Parameters
uBuilding - pointer to Mine building, null if we are clearing this pointer.

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

Description
This function is used to set Mine building from which we will be now get containers. Point "Take" of this building can be obtainer by functions GetSourceBuildingTakeLocationX, GetSourceBuildingTakeLocationY and GetSourceBuildingTakeLocationZ.
If we will call this function second time with the same parameters then point "Take" will change (not for flying Harvester).

See also
GetSourceBuilding, GetSourceBuildingTakeLocationX, GetSourceBuildingTakeLocationY, GetSourceBuildingTakeLocationZ