Instructions/Check Altitude: Difference between revisions

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


 
Evaluates whether a target entity is on a plateau or in a valley.
==== Uses ====
==== Uses ====


 
When scanning for targets, it is often desirable to specify whether the target is in a "safe area" as plateaus typically are not and will often present scenarios where automated units meet their demise.


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


 
[[Instructions/Check Blightness|Check Blightness]]
{{Instruction_Bottom}}
{{Instruction_Bottom}}

Latest revision as of 21:39, 11 September 2023


Check Altitude
     
     Divert program depending on location of a unit or coordinate
Lua ID check_altitude
Category Unit
Icon Compare Values.png
Argument One: Type Input
Argument One: Name Target
Argument One: Description The unit or coordinate to check for (if not self)
Argument One: Data Type coord
Argument Two: Type Exec
Argument Two: Name Valley
Argument Two: Description Where to continue if the unit or coordinate is in a valley
Argument Three: Type Exec
Argument Three: Name Plateau
Argument Three: Description Where to continue if the unit or coordinate is on a plateau



Description[edit | edit source]

Evaluates whether a target entity is on a plateau or in a valley.

Uses[edit | edit source]

When scanning for targets, it is often desirable to specify whether the target is in a "safe area" as plateaus typically are not and will often present scenarios where automated units meet their demise.

Similar Instructions[edit | edit source]

Check Blightness