HomShaBom Posted September 20, 2015 Share Posted September 20, 2015 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 More sharing options...
Mobbstar Posted September 20, 2015 Share Posted September 20, 2015 dependencies, those prefabs are required for the new prefab to work. I have no idea what it does, though. Link to comment https://forums.kleientertainment.com/forums/topic/57985-what-is-deps-for/#findComment-674459 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now