Jump to content

Npc Spawn 3.5.0

   (20 reviews)
Message added by KpucTaJl,

This plugin does not have its own functionality. This plugin is only used as an API for other plugins

1 Screenshot

  • 407.2k
  • 83.9k
  • 2.25 MB
  • Update details
    v3.5.0
    Released
    Download size 2.25 MB
    Total versions 80
    Typical update pace About every 4 days
    Freshness Updated 7 days ago

This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



aimacak

Posted

3 minutes ago, GiBr said:

it works fine on one of servers however on another i get this error

160 NpcSpawn - Failed to compile: Expected expression | Line: 6590, Pos: 29

Are you sure it's the latest version too? can you write o.reload NpcSpawn in the server console and show all the messages from the server console after that?

Reb_

Posted

Do you have a tutorial that describes how to use your API to spawn in NPCs? 

Thanks in advance.

aimacak

Posted

2 hours ago, Reb_ said:

Do you have a tutorial that describes how to use your API to spawn in NPCs? 

Thanks in advance.

Hello, is the information on the Details tab not enough for you or have you not seen it?

  • Like 1
Reb_

Posted (edited)

I've looked at those - I was hoping for something like the bare minimum to spawn a bot; using directives, including the plugin, calling the method, adding the position, etc.

Additionally, if I call this 3 times with the same location, will the bots all spawn in the same spot or do I need to create random positions to spread the bots out a bit? - I'm guessing the bot preset json sorts all this config for the spawn? So call it once and the position will be the centre of the preset?

I'll have a play later but right now the one line method call doesn't tell me a lot, probably my own lack of knowledge though.

For instance:

[PluginReference] Plugin NpcSpawn;

void OnCrateHack(HackableLockedCrate crate) {

	Vector3 location = crate.transform.position;

	NpcSpawn.SpawnPreset(location, "Mercenary");

}

 

Edited by Reb_
aimacak

Posted

21 hours ago, Reb_ said:

I've looked at those - I was hoping for something like the bare minimum to spawn a bot; using directives, including the plugin, calling the method, adding the position, etc.

Additionally, if I call this 3 times with the same location, will the bots all spawn in the same spot or do I need to create random positions to spread the bots out a bit? - I'm guessing the bot preset json sorts all this config for the spawn? So call it once and the position will be the centre of the preset?

I'll have a play later but right now the one line method call doesn't tell me a lot, probably my own lack of knowledge though.

For instance:

[PluginReference] Plugin NpcSpawn;

void OnCrateHack(HackableLockedCrate crate) {

	Vector3 location = crate.transform.position;

	NpcSpawn.SpawnPreset(location, "Mercenary");

}

 

Of course, I'm not a developer, but in your example, everything seems to be simple. When hacking hackablecrate starts, an NPC from NpcSpawn with the Mercenary preset will be created at its coordinates, which should be located in oxide/data/NpcSpawn/Preset/Mercenary.json, you can setup it via chat command from NpcSpawn plugin: /preset

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 26
  • Love 13

User Feedback

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
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
175.7k
Total sales
Payments
3.8m
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.