[Include] RNPC Pool - Quick, direct and fully managed access to a pool of NPCs
#4

Yep, experimented a bit with it so far, and its definitely the most comfortable way of "spawning" NPCs ive had so far, no need to use OnPlayerConnect and OnPlayerSpawn to set up the NPCs, just get an ID and it can be used instantly.
I might change this a bit, to give an option to vary the pool size automatically, so whenever a NPC from the pool is picked, another one connects to the server. And when returning it it gets disconnected, to always have a specific amount of "buffered" NPCs ready. I think that could be even more handy, as long as the buffer size is big enough, as you wouldnt need to care about connecting NPCs manually at all then.

Im currently working on an example script to show how to use this for NPC streaming, specifically to populate shops dynamically. That should make the use of this include much clearer.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)