Skip to content

UnitTableGet

16.6

Class Documentation

Edit documentation

A getter that reads a script variable that holds a unit id. A Unit value is returned as it is. An Entity value is accepted if that entity has a unit, and the getter then returns the id of that unit. Any other kind, or a missing variable, fails with a script error. See ScriptTableGet for Table and Var.

Read as a driver source (see ILogicDriverSourceGet), the getter returns the unit with that id, and fails if no unit has the id.