object - commandobject - unit - tank - carrier
int SetDestinationBuilding(unit uBuilding)
Scope: private
Parameters
uBuilding - pointer to Refinery or Transport Balse, null if we are clearing this pointer.
Return values
True if uBuilding were set as Destination Building, false otherwise.
Description
This function is used to set building where we will be carry containers from now. Point
"Put" of this building can be obtained by functions
GetDestinationBuildingPutLocationX, GetDestinationBuildingPutLocationY
and GetDestinationBuildingPutLocationZ.
If we will call this function second time with the same parameters then point
"Put" will change (not for flying Harvester).
See also
GetDestinationBuilding, GetDestinationBuildingPutLocationX,
GetDestinationBuildingPutLocationY, GetDestinationBuildingPutLocationZ