Skip to content

OnStructureRepair

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnStructureRepair( BaseCombatEntity instance, BasePlayer player )
{
    Puts( "OnStructureRepair works!" );
}

Location

  • BaseCombatEntity::DoRepair(BasePlayer player)
csharp
//---
	BasePlayer player = player2;
	if (!this.repair.enabled)
	{
		return;
	}
	if (Interface.CallHook("OnStructureRepair", this, player2) != null)
	{
		return;
	}
	float num = 30f;
	if (player.IsInCreativeMode && Creative.freeRepair)
//---

Released under the MIT License.