Jump to content

How to get the spawn position of an NPC

Pending 1.3.2

Komorebi
Komorebi

Posted

Is there any way to quickly get the spawn positions of NPCs? I want to adjust these points.

image.png

aimacak

Posted

Hello, I know that we solved your problem in private messages with KpucTaJI in discord, but I'll add this here in case someone needs it.
When updating the plugin, this will also be added.


For add chat command: /warpos you need open DefendableBases.cs and:
add this:

        [ChatCommand("warpos")]
        private void ChatCommandPos(BasePlayer player)
        {
            if (!player.IsAdmin || _controller == null) return;
            Vector3 pos = _controller.transform.InverseTransformPoint(player.transform.position);
            Puts($"Position: {pos}");
            PrintToChat(player, $"Position: {pos}");
        }

after this method:

        [ConsoleCommand("givebarricade")]
        private void ConsoleGiveBarricade(ConsoleSystem.Arg arg)

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.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.9k
Marketplace sales
Payments
3.3m
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.