Skip to content

OnStructureUpgraded

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnStructureUpgraded( BuildingBlock instance, BasePlayer player, BuildingGrade.Enum type, ulong skin )
{
    Puts( "OnStructureUpgraded works!" );
}

Location

  • BuildingBlock::DoUpgradeToGrade(BaseEntity.RPCMessage msg)
csharp
//---
			{
				NetworkIdentifier = net.ID,
				IntIdentifier = (int)constructionGrade.gradeBase.type
			}, 1f);
		}
		Interface.CallHook("OnStructureUpgraded", this, msg.player, constructionGrade.gradeBase.type, constructionGrade.gradeBase.skin);
		timePlaced = GetNetworkTime();
	}
}

Released under the MIT License.