Instructions/Check Altitude

From Desynced Wiki


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