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