Jump to content

Recommended Posts

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.

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...