1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Solved] Floating text just for one player

Discussion in 'World Editor Help Zone' started by HerlySQR, Sep 9, 2020.

  1. HerlySQR

    HerlySQR

    Joined:
    Jun 26, 2020
    Messages:
    702
    Resources:
    0
    Resources:
    0
    I know I have to use "GetLocalPlayer" but I'm not acquainted about that and I don't wanna do errors because I heard if that is bad executed it will "disconect" the other players , how can I do that? And I wanna make that text move above a unit.
     
  2. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    2,471
    Resources:
    0
    Resources:
    0
    No need for get local player, Floating Text has an option to hide/show for certain players. I think you have to Hide it for All Players, then Show it for the desired player.
     
  3. DracoL1ch

    DracoL1ch

    Joined:
    Dec 12, 2010
    Messages:
    2,040
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    you can't cause desync by floating texts, they ARE async for every player
     
  4. DoomBlade

    DoomBlade

    Joined:
    Feb 5, 2018
    Messages:
    366
    Resources:
    0
    Resources:
    0
    If you are on latest patch you can also move the floating text.
    • Floating Text - Change the position of (Last created floating text) to Point with Z offset 0.00
    • Floating Text - Change the position of (Last created floating text) to No unit with Z offset 0.00.


    Probably need a periodic trigger to make the text follow the unit.
     
  5. HerlySQR

    HerlySQR

    Joined:
    Jun 26, 2020
    Messages:
    702
    Resources:
    0
    Resources:
    0
    I hope that is not something of recent versions, we have this problem before.
     
  6. disruptive_

    disruptive_

    Joined:
    Mar 19, 2017
    Messages:
    248
    Resources:
    0
    Resources:
    0
    You can't desync with text tags (see post above).
    If you want the functionality of showing a text only to certain players, you can use, just as example:
    call SetTextTagVisibility(textTagVar, GetLocalPlayer()==playerVar) or
    call SetTextTagVisibility(textTagVar, IsPlayerInForce(GetLocalPlayer(), forceVar))
     
  7. HerlySQR

    HerlySQR

    Joined:
    Jun 26, 2020
    Messages:
    702
    Resources:
    0
    Resources:
    0
    Oh, I see there is an option for that, I feel so stupid, thank you.