Sweddy Posted May 25, 2015 Share Posted May 25, 2015 I just want to add some rare drops to trees without having to copy the entire evergreens file.And I mean rare drops for both Evergreens and Birch trees seperatly. I just want that one line of code. Link to comment https://forums.kleientertainment.com/forums/topic/54393-rare-drops-for-trees/ Share on other sites More sharing options...
Mobbstar Posted May 25, 2015 Share Posted May 25, 2015 Haha. Why don't you straightup demand someone to make you a supermod? Unless you meant how to edit a prefab from modmain, which is possible indeed: AddPrefabPostInit("evergreen", function(inst) --your code hereend) Link to comment https://forums.kleientertainment.com/forums/topic/54393-rare-drops-for-trees/#findComment-640459 Share on other sites More sharing options...
Blueberrys Posted May 25, 2015 Share Posted May 25, 2015 @Sweddy-- chance is between 0 - 1tree_inst.components.lootdropper:AddChanceLoot("prefab_name", chance)You'll need to account for the growth, cause the loot is reset every time. See this mod for an example. Link to comment https://forums.kleientertainment.com/forums/topic/54393-rare-drops-for-trees/#findComment-640480 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