Skip to content

IsInShopRangeBoolDriver

14.17

Inheritance 4 ancestors · 50 siblings

Class Documentation

Edit documentation

A bool driver that is true when the source unit can use a shop. The test is the one the HUD uses for the shop:

  1. A dead unit is always in range.
  2. A unit with an internal flag set is in range. The meaning of the flag is not determined.
  3. Otherwise the unit is in range when it is inside the radius of an enabled shop of its own team.

The source must be a unit. The driver returns false without one.