CreateTextTagUnitBJ

Parameters
sstring
whichUnitunit
zOffsetreal
sizereal
redreal
greenreal
bluereal
transparencyreal
comment
patch

1.07

Source
Blizzard.j (suggest an edit or discuss on Github)
return type
texttag
Source code
function CreateTextTagUnitBJ takes string s, unit whichUnit, real zOffset, real size, real red, real green, real blue, real transparency returns texttag
    set bj_lastCreatedTextTag = CreateTextTag()
    call SetTextTagTextBJ(bj_lastCreatedTextTag, s, size)
    call SetTextTagPosUnitBJ(bj_lastCreatedTextTag, whichUnit, zOffset)
    call SetTextTagColorBJ(bj_lastCreatedTextTag, red, green, blue, transparency)

    return bj_lastCreatedTextTag
endfunction