Skip to content

HasUnitTagBoolDriver

15.18

Inheritance 4 ancestors · 50 siblings

Class Documentation

Edit documentation

Bool logic driver that tests the unit tags of the unit it is evaluated on against the set in UnitTags. ObjectTags describes unit tags and where a unit's tags come from.

Evaluation:

  1. The driver takes the source it is evaluated on. With no source, or with a source that is not an AiBaseClient, it returns false.
  2. It reads the unit's tags and compares them with UnitTags in the way Has selects.
Has Returns true when Empty UnitTags
false the unit has at least one of the tags false
true the unit has every one of the tags true

The result follows the unit's character record. It changes during a game only when the unit changes to the data of another character.

Properties

Has

U8 = 0
Edit documentation

Selects the comparison. false passes when the unit has at least one tag of the set. true passes only when the unit has all of them.