HomShaBom Posted September 20, 2015 Share Posted September 20, 2015 Different things require different amount of space to be placed, for example, an Ice Box can be built much closer to a Science Machine than a Crock Pot can... [Screenshot]But in their prefab files I can't find anything that would affect this. How do you do it? cookpot has MakeObstaclePhysics(inst, .5) and icebox does not, but i've tried adding it to a icebox and it had no effect so I know this is know what does it. This is used as one factor in determining how close other things can be built to it, but not how close it can be built to other things. Link to comment https://forums.kleientertainment.com/forums/topic/57996-how-do-you-set-the-area-required-for-placing-something/ Share on other sites More sharing options...
Mobbstar Posted September 20, 2015 Share Posted September 20, 2015 In the recipe, there's a variable for that. The mod "architectural geometry" changes that one for chests, I think. Link to comment https://forums.kleientertainment.com/forums/topic/57996-how-do-you-set-the-area-required-for-placing-something/#findComment-674523 Share on other sites More sharing options...
HomShaBom Posted September 20, 2015 Author Share Posted September 20, 2015 I suspected it might be in the recipe, but I cannot find the definition for the AddRecipe function. Where can I find it? Link to comment https://forums.kleientertainment.com/forums/topic/57996-how-do-you-set-the-area-required-for-placing-something/#findComment-674526 Share on other sites More sharing options...
Mobbstar Posted September 20, 2015 Share Posted September 20, 2015 Recipe() is found in recipe.lua in the scripts folder. Here's an overview of the possible arguments (you can skip one using nil):Recipe("product",{ingredients},tab,tech_tree,"placer",min_spacing,requires_researchlab,number_of_items) Link to comment https://forums.kleientertainment.com/forums/topic/57996-how-do-you-set-the-area-required-for-placing-something/#findComment-674560 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