Description:

// MAP 2/14/2009
// EXPERIMENTAL
// Creates a new area based on an existing area.  The new area is loaded from
// disk (so created/destroyed contents in the original area will not be duplicated)
// however the walkmesh is shared with the existing area to reduce
// lag during load time, as well as to keep memory consumption lower.

object CreateInstancedAreaFromSource(object oArea);

Overview:

NWN2 introduced near the end of it's Update Life cycle a very powerful function - allowing people to uniquely instance off areas. For single player modules, this is not very important but for Persistent Worlds or any module dealing with multiple concurrent amounts of players trying explore the same area or location - the usefulness grows exponentially.

That said, this function does have a few quirks and issues that need to be designed around, especially if you want to properly recycle areas and avoid memory leaks.

Guide Lines: