im spawning in a stone foundation but it seems to only spawn in the top layer the side walls are missing untell i attach another foundation to it..
am i missing somthing?
am i missing somthing?
BuildingBlock block = (BuildingBlock)GameManager.server.CreateEntity("assets/prefabs/building core/foundation/foundation.prefab");
if (block == null) return;
block.transform.position = player.transform.position;
block.transform.rotation = player.transform.rotation;
block.gameObject.SetActive(true);
block.grounded = true;
block.blockDefinition = PrefabAttribute.server.Find<Construction>(block.prefabID);
block.Spawn();
block.SetGrade(BuildingGrade.Enum.Stone);
block.SetHealthToMax();
block.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
SpawnRefresh(block);
block.SendNetworkUpdateImmediate();