Skip to content

OnStructureUpgraded

Usage

  • No return behavior

Example Autogenerated

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

Location

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

Released under the MIT License.