SetTextTagPosUnit

Parameters
t texttag

The text tag to modify.

whichUnit unit

The unit to move the text tag to.

heightOffset real

z offset added.

comment

Sets the position of a text tag to the current position of a unit without following it around.

note

The absolute z coordinate is computed by terrain height at (x, y) + fly height of whichUnit + max z extent of the model of whichUnit. This also considers model scaling changes from 'Bloodlust' but not from SetUnitScale (since SetUnitScale does not affect the model extents). Later changes to the terrain height, fly height or model are not reacted to.

patch

1.07

Source
common.j
return type
nothing
Source code
native SetTextTagPosUnit            takes texttag t, unit whichUnit, real heightOffset returns nothing