Jump to content

Recommended Posts

What is the deps parameter for in the Prefab constructor?

Prefab = Class( function(self, name, fn, assets, deps)    self.name = name or ""    self.path = name or nil    self.name = string.sub(name, string.find(name, "[^/]*$"))    self.desc = ""    self.fn = fn    self.assets = assets or {}    self.deps = deps or {}end)

I see in some prefabs it contains the names of related prefabs, but I can't tell what the purpose is. Like for the "bee" prefab, deps contains "honey" and "stinger". I know those are possible drops for killing a bee, but the lootdropper component is responsible for determining the loot, not deps. So what does deps do?

Link to comment
https://forums.kleientertainment.com/forums/topic/57985-what-is-deps-for/
Share on other sites

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...