Category | Scripting |
Created | 30.06.2022 02:41 |
Ades Sadaert (Drandrad) | 30.06.2022 02:41 |
---|---|
Hi, how can i make AI to use this script and destroy fruit on ground Destruction = {}; function Destruction,:loadMap(savegame) for name,fruitType in pairs(g_fruitTypeManager.nameToFruitType) do if name ~= "GRASS" and name ~= "POPLAR" then local destruction = {} destruction.filterStart = 2 --3 destruction.filterEnd = 9 --4 destruction.state = 0 --2; set to 3 for less impact destruction.onlyOnField = true --false fruitType.destruction = destruction end end end addModEventListener(Destruction); print("Destruction Beta 1.0.0.0 loaded.") |
Note: Log in to post. Create a new account here.