• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Is using local player like that ok?

Status
Not open for further replies.
Level 13
Joined
Jan 2, 2016
Messages
978
JASS:
    function CreateTimedTextTag takes string text, real size, real x, real y, real time returns texttag
        set bj_lastCreatedTextTag = CreateTextTag()
        call SetTextTagText( bj_lastCreatedTextTag, text, size*0.0023 )
        call SetTextTagPos( bj_lastCreatedTextTag, x, y, 100 )
        call SetTextTagPermanent( bj_lastCreatedTextTag, false )
        call SetTextTagLifespan( bj_lastCreatedTextTag, time )
// wondering about next row
        call SetTextTagVisibility( bj_lastCreatedTextTag, IsVisibleToPlayer(x, y, GetLocalPlayer()) )
        return bj_lastCreatedTextTag
    endfunction
 
Status
Not open for further replies.
Top