Jump to content

NPCs and turrets are misaligned.

Pending 2.3.0

9527
9527

Posted

After the update, NPCs and turrets were found to be misaligned.

image.png

  • Like 1
aimacak

Posted

10 hours ago, 9527 said:

After the update, NPCs and turrets were found to be misaligned.

Hello, thanks, for temporary solution you can try change default method for this one, it helped me, I didn't find any problems, I'll pass it bug on to KpucTaJI.

			private void SpawnDiveSite()
			{
				DiveSite diveSite = GameManager.server.CreateEntity("assets/prefabs/misc/divesite/divesite_a.prefab", transform.position, transform.rotation) as DiveSite;

				Spawnable spawnable = diveSite.GetComponent<Spawnable>();
				if (spawnable != null) DestroyImmediate(spawnable);

				for (int num = diveSite.transform.childCount; num > 0; num--)
				{
					Transform child = diveSite.transform.GetChild(num - 1);
					if (child.CompareTag("persist")) continue;
					if (child.name is "MissionPoint" or "SharkSpawner" or "Bobber" or "CrateSpawner" or "TerrainAnchor")
					DestroyImmediate(child.gameObject);
				}

				diveSite.enableSaving = false;
				diveSite.Spawn();
				diveSite.transform.position = transform.position;
				diveSite.SendNetworkUpdateImmediate();
				Entities.Add(diveSite);
			}

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.