• 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.

Hide Unit For Specific Player

Status
Not open for further replies.
Level 9
Joined
Apr 28, 2009
Messages
538
Is there any way of hiding a unit for a specific player?

For example, i have a map with a hero for each player, all in a small region. I want no player to be able to see other hero than his own.
 
Level 9
Joined
Apr 28, 2009
Messages
538
yes, and i don't want them to be transparent :)

EDIT: bodom i can create floating text visible for only one player too with this?
( Custom script: if GetLocalPlayer() == Player(X) then
...actions
Custom script: endif)
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Even better:

  • Set string = " "
  • Custom script: if GetLocalPlayer() == Player(0) then
  • Set string = "My text I want to show to player 1"
  • Custom script: endif
  • Floating Text - create a new floating text that reads <string>
In case of hiding units: set transparency to 0 locally. Will still make the mouse cursor highlight though...
 
Status
Not open for further replies.
Top