OnStructureUpgrade
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnStructureUpgrade( BuildingBlock instance, BasePlayer player, Enum type, ulong skin )
{
Puts( "OnStructureUpgrade works!" );
}
Location
- BuildingBlock::DoUpgradeToGrade(BaseEntity/RPCMessage msg)
csharp
//---
}
}
}
return;
}
if (Interface.CallHook("OnStructureUpgrade", this, msg.player, constructionGrade.gradeBase.type, constructionGrade.gradeBase.skin) != null)
{
return;
}
if (!this.CanAffordUpgrade(constructionGrade.gradeBase.type, constructionGrade.gradeBase.skin, msg.player))
{
//---