OnConstructionPlace
Usage
- No return behavior
Example Autogenerated
csharp
private void OnConstructionPlace( )
{
Puts( "OnConstructionPlace works!" );
}
Location
- Planner::DoPlacement(Construction/Target placement, Construction component)
csharp
//---
{
float num2 = (buildingBlock != null) ? buildingBlock.currentGrade.maxHealth : baseCombatEntity.startHealth;
baseCombatEntity.ResetLifeStateOnSpawn = false;
baseCombatEntity.InitializeHealth(num2 * num, num2);
}
if (Interface.CallHook("OnConstructionPlace", baseEntity, component, placement, ownerPlayer) != null)
{
if (baseEntity.IsValid())
{
baseEntity.KillMessage();
}
//---