OnPayForUpgrade
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPayForUpgrade( BasePlayer player, BuildingBlock instance, ConstructionGrade g )
{
Puts( "OnPayForUpgrade works!" );
}
Location
- BuildingBlock::PayForUpgrade(ConstructionGrade g, BasePlayer player)
csharp
private void PayForUpgrade(ConstructionGrade g, BasePlayer player)
{
if (Interface.CallHook("OnPayForUpgrade", player, this, g) != null)
{
return;
}
if (player.IsInCreativeMode && ConVar.Creative.freeBuild)
{
//---