- Joined
- Jan 9, 2005
- Messages
- 2,126
So this is not working.
I've only ever used GUI floating text so I'm a bit lost with the JASS version. For instance, this part converted from GUI works without any problems:
JASS:
set LumberText = CreateTextTag()
call SetTextTagText(LumberText, I2S(FF_Lumber_Amount[id]), .023) //the formula is apparently size * 0.023 / 10. So a size of 10 would be... 0.023
call SetTextTagPos(LumberText, GetUnitX(Ent), GetUnitY(Ent), 60.00)
call SetTextTagColor(LumberText, 0, 153, 0, 255) //is 255 alpha fully visible or fully transparent?
call SetTextTagLifespan(LumberText, 4.0)
call SetTextTagFadepoint(LumberText, 2.0)
call SetTextTagVelocity(LumberText, 64 * Cos(1.5708), 64 * Sin(1.5708))
call SetTextTagVisibility(LumberText, true)
/*call SetTextTagVisibility(LumberText, false) //This has been commented out because I don't know if I'm using GetLocalPlayer() correctly
if GetLocalPlayer() == GetOwningPlayer(Ent) then
call SetTextTagVisibility(LumberText, true)
endif*/
I've only ever used GUI floating text so I'm a bit lost with the JASS version. For instance, this part converted from GUI works without any problems:
JASS:
set LumberText = CreateTextTagUnitBJ( I2S(FF_Lumber_Amount[id]), Ent, 0, 10.0, 0.00, 60.00, 0.00, 0 )
call SetTextTagVelocityBJ( LumberText, 90.00, 90 )
call SetTextTagLifespan(LumberText, 4.0)
call SetTextTagFadepoint(LumberText, 2.0)
call ShowTextTagForceBJ( false, LumberText, GetPlayersAll() )
call ShowTextTagForceBJ( true, LumberText, GetForceOfPlayer(GetOwningPlayer(Ent)) )
Last edited by a moderator: