SetTextTagPosUnit
- Parameters
t texttagThe text tag to modify.
whichUnit unitThe unit to move the text tag to.
heightOffset realz 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 ofwhichUnit. This also considers model scaling changes from 'Bloodlust' but not fromSetUnitScale(sinceSetUnitScaledoes 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 (suggest an edit or discuss on Github)
- return type
nothing- Source code
native SetTextTagPosUnit takes texttag t, unit whichUnit, real heightOffset returns nothing