Display for different players

feelingparty

New Member
Reaction score
3
This might have been asked quite a few times already. I, however, didn't find it so I'm asking here:

How can you modify a unit's or floating text's tinting and transparency for different players. I want to make a floating text only visible for some players.


Any thoughts?
 

Jedi

New Member
Reaction score
63
Trigger:
  • Actions
    • Set Player = (Triggering player)
    • Custom script: if GetLocalPlayer() == udg_Player then
    • Floating Text - Create floating text that reads Message at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
    • Custom script: endif
    • Floating Text - Change (Last created floating text): Disable permanence
    • Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
    • Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds


Create a floating text for Player.
 

Accname

2D-Graphics enthusiast
Reaction score
1,464
if you are not familiar with GetLocalPlayer (it is not innocuous) you can as well hide the floating text for all players and unhide it only for a certain player.
 

feelingparty

New Member
Reaction score
3
Yes I can't seem to figure out what exactly GetLocalPlayer does. Will this work with units as well?

P.S. Thanks for the show/hide function. I kinda missed it :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top