Jump to content

Recommended Posts

In every prefab file we can see something like this:

local prefabs = 
{
	-- list of prefabs that can be summoned by this prefab
}

In scripts/prefabs.lua this table is assigned to prefab.deps.

However, actually, unlisted prefabs can be summoned too. It usually used for dynamically add custom loot, etc. I used it and did't notice any difference.

So what is it for?
And, if this
prefab.deps realy need, can I update it dynamically? From AddPrefabPostInit for example?

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
×
  • Create New...