Skip to content

InterestPointVector3Driver

14.10

Class Documentation

Edit documentation

A vector3 driver that returns the point of interest of the source unit, as a position in world units. It is the point of interest that LookAtInterestAngleParametricUpdater turns toward.

The point is the first of these that exists:

  1. The position of the unit that the game set as this unit's look-at target.
  2. The position that the game set as this unit's look-at position.
  3. The position of the nearest enemy unit.

The source must be a unit. Without a point of interest the driver returns (0, 0, 0).