Skip to content

OnEntityBuilt ​

Usage ​

  • No return behavior

Example Autogenerated ​

csharp
private void OnEntityBuilt( Planner instance, UnityEngine.GameObject gameObject )
{
    Puts( "OnEntityBuilt works!" );
}

Location ​

  • Planner::DoBuild(Construction.Target target, Construction component)
csharp
//---
		}
		ConstructionErrors.Log(ownerPlayer, Construction.lastPlacementErrorDebug);
	}
	if (gameObject != null)
	{
		Interface.CallHook("OnEntityBuilt", this, gameObject);
		Deployable deployable = GetDeployable();
		BaseEntity baseEntity = GameObjectEx.ToBaseEntity(gameObject);
		if (baseEntity != null && deployable != null && ShouldParent(target.entity, deployable))
		{
			if (target.socket is Socket_Specific_Female socket_Specific_Female)
//---

Released under the MIT License.