Instructions/Can Produce

From Desynced Wiki


Can Produce
     
     Returns if a unit can produce an item
Lua ID can_produce
Category Global
Icon Can Produce.png
Argument One: Type Exec
Argument One: Name Can Produce
Argument One: Description Where to continue if the item can be produced
Argument Two: Type Input
Argument Two: Name Item
Argument Two: Description Production Item
Argument Two: Data Type item
Argument Three: Type Input
Argument Three: Name Component
Argument Three: Description Optional Component to check (if Component not equipped)
Argument Three: Data Type entity



Description[edit | edit source]

Tests true or false depending on if the unit has a component capable of producing the specified item.

Uses[edit | edit source]

Used for verifying that the unit has the right component equipped before proceeding to produce an item.

Similar Instructions[edit | edit source]