• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Floating text just for one player

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,852
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.
 
Level 12
Joined
Feb 5, 2018
Messages
521
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.
 
Level 8
Joined
Mar 19, 2017
Messages
248
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))
 
Status
Not open for further replies.
Top