Instructions/Match: Difference between revisions

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


 
Filters the input entity and if it matches all specified filters, the instruction will proceed through the top pin.
==== Uses ====
==== Uses ====


 
If used in conjunction with [[Instructions/Loop Entities (Range)|Loop Entities (Range)]], this instruction can be used to verify if a given entity matches filters in the same manner as a radar. This may be faster due to radar requiring game ticks to operate.


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


 
[[Instructions/Loop Signal (Match)|Loop Signal (Match)]], [[Instructions/Radar|Radar]]
{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 16:48, 22 September 2023


Match
     
     Filters the passed unit
Lua ID match
Category Unit
Icon Compare Values.png
Argument One: Type Input
Argument One: Name Unit
Argument One: Description Unit to Filter, defaults to Self
Argument One: Data Type entity
Argument Two: Type Input
Argument Two: Name Filter
Argument Two: Description Filter to check
Argument Two: Data Type radar
Argument Three: Type Input
Argument Three: Name Filter
Argument Three: Description Second Filter
Argument Three: Data Type radar
Argument Four: Type Input
Argument Four: Name Filter
Argument Four: Description Third Filter
Argument Four: Data Type radar
Argument Five: Type Exec
Argument Five: Name Failed
Argument Five: Description Did not match filter



Description[edit | edit source]

Filters the input entity and if it matches all specified filters, the instruction will proceed through the top pin.

Uses[edit | edit source]

If used in conjunction with Loop Entities (Range), this instruction can be used to verify if a given entity matches filters in the same manner as a radar. This may be faster due to radar requiring game ticks to operate.

Similar Instructions[edit | edit source]

Loop Signal (Match), Radar