Instructions/Can Produce: Difference between revisions

From Desynced Wiki
(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}")
 
(informational addition)
 
Line 2: Line 2:


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


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


==== Similar Instructions ====
==== Similar Instructions ====

Latest revision as of 18:28, 30 October 2023


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]