sm.pipeGraph.setAutomatedTask
Sets an automated task to be performed by the pipe graph when the body is unloaded.
Kind: Function
Environments: Game
Game
sm.pipeGraph.setAutomatedTask( requester, recipe, parallel )
Availability: Server only
Parameters:
| Name | Type | Description |
|---|---|---|
requester |
Shape | The shape which requests the automated process. |
recipe |
table | A table with information on the recipe. Uses the crafter recipe format. Can have "craftTime", "quantity", "itemId", "externalContainers"(containers targeted outside pipe graph for consumption, example: refinery), "selfOutputContainer"(if the shape has it's own collection container), "ingredientList", "randomCraftList" random weighted crafts (see prospector), "specialCrafting" used to target specific container slots with custom information (see ore crusher). |
parallel (optional) |
boolean | Whether the craft tasks should be carried out in parallel or not, off by default. A parallel task will be carried out independently of other automated tasks on this shape. (Optional) |