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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.