• 🏆 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!

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