Cyde042 Posted October 12, 2014 Share Posted October 12, 2014 (edited) Long story short, dig-able light flowers, I made a file for the dug prefab and got to the MakePlacer. Now, it's like this. MakePlacer( "common/dug_flower_cave"..type.."_placer", "bulb_plant"..type, "bulb_plant"..type, "picked")"..type" works like "bushname" in berrybush prefab to make it compact. Now, the syntax for MakePlacer isfunction MakePlacer(name, bank, build, anim, onground, snap, metersnap, scale)And contrary to the actual prefab names (flower_cave,flower_cave_double,flower_cave_triple) the build names aren't similar (bulb_plant_single,bulb_plant_double,bulb_plant_triple). Now, the problem would resort only to the first type - single. But for some reason, the "double" placer doesn't appear when I hover with the specific "double" item, only the "triple" type appears with the "triple" item. Is there any way to resolve this? Or at least hardcode it like if inst.prefab == "flower_cave_single" then etc. etc.? EDIT: I don't think there was a way to do this without using tables. So I did that, similar to mushrooms.lua Edited October 13, 2014 by Cyde042 Link to comment https://forums.kleientertainment.com/forums/topic/41969-varying-placers-with-multiple-prefabs/ 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