function BountyFromUnit takes player Receiver, unit BountyFrom, integer Bounty returns nothing
local texttag BountyText = CreateTextTag( )
call AdjustPlayerStateBJ( Bounty, Receiver, PLAYER_STATE_RESOURCE_GOLD )
if Bounty >= 0 then
call SetTextTagText(BountyText, "+" + I2S(Bounty), 0.023)
else
call SetTextTagText(BountyText, I2S(Bounty), 0.023)
endif
call SetTextTagPos(BountyText, GetUnitX(BountyFrom), GetUnitY(BountyFrom), GetUnitFlyHeight(BountyFrom))
call SetTextTagColor(BountyText, 254, 211, 18, 255)
call SetTextTagVisibility(BountyText, GetLocalPlayer() == Receiver)
call SetTextTagVelocity(BountyText, 0, 0.03)
call SetTextTagFadepoint(BountyText, 2 )
call SetTextTagLifespan(BountyText, 3 )
call SetTextTagPermanent(BountyText, false )
call DestroyEffect(AddSpecialEffectTarget("UI\\Feedback\\GoldCredit\\GoldCredit.mdl", BountyFrom, "origin"))
set BountyText = null
endfunction