Skip to content

OnConstructionPlace ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnConstructionPlace(  )
{
    Puts( "OnConstructionPlace works!" );
}

Location ​

  • Planner::DoPlacement(Construction.Target placement, Construction component)
csharp
//---
	BaseEntity baseEntity = component.CreateConstruction(placement, bNeedsValidPlacement: true);
	if (!baseEntity)
	{
		return null;
	}
	if (Interface.CallHook("OnConstructionPlace", baseEntity, component, placement, ownerPlayer) != null)
	{
		if (baseEntity.IsValid())
		{
			baseEntity.KillMessage();
		}
//---

Released under the MIT License.