Instructions/Request Wait

From Desynced Wiki


Request Wait
     
     Requests up to a specified amount of an item and waits until that amount exists in inventory
Lua ID request_wait
Category Unit
Icon Make Order.png
Argument One: Type Input
Argument One: Name Item
Argument One: Description Item and amount to order
Argument One: Data Type item_num



Description[edit | edit source]

Creates an item request if the item quantity exceeds current inventory contents. The instruction will then wait until the item is received before proceeding.

If a unit has 17 Metal Bars and it makes a request of 20, then it would generate an order of 3 items.

Uses[edit | edit source]

Used for generating an item request. Production components generate item requests and this instruction imitates that functionality.

Similar Instructions[edit | edit source]

Request Item