CreateTextTagUnitBJ

Parameters
sstring
whichUnitunit
zOffsetreal
sizereal
redreal
greenreal
bluereal
transparencyreal
comment
patch

1.07

Source
Blizzard.j (raise an issue to discuss on Github or submit a PR)
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