OnBuildingMerge
Usage
- No return behavior
Example Autogenerated
csharp
private void OnBuildingMerge( ServerBuildingManager instance, Building building1, Building building2 )
{
Puts( "OnBuildingMerge works!" );
}
Location
- ServerBuildingManager::Merge(BuildingManager/Building building1, BuildingManager/Building building2)
csharp
private void Merge(BuildingManager.Building building1, BuildingManager.Building building2)
{
Interface.CallHook("OnBuildingMerge", this, building1, building2);
while (building2.HasDecayEntities())
{
building2.decayEntities[0].AttachToBuilding(building1.ID);
}
if (ConVar.AI.nav_carve_use_building_optimization)
//---