SpoonyBardIV Posted April 29, 2023 Share Posted April 29, 2023 (edited) I'm trying to add a custom biome to the caves, but this particular function screws up the shape of the task: if prefab == "cave" then local nodes = topology_save.root:GetNodes(true) for k,node in pairs(nodes) do -- BLAH HACK if node.data ~= nil and node.data.type ~= nil and string.find(k, "Room") ~= nil then WorldSim:SetNodeType(k, NODE_TYPE.Room) end end end If I remove this function from forest_map.lua, my new biome generates in the shape I want it to. Is there any way to tell this function to ignore the task for my biome? For example, the existing function affects everything in the caves, but I want my new tasks/rooms to be excluded. Edited April 29, 2023 by SpoonyBardIV Link to comment https://forums.kleientertainment.com/forums/topic/147473-trying-to-add-a-custom-biome-any-way-to-make-an-existing-function-ignore-certain-tasks/ 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