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

[Solved] Create unity visible only for a player

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
From GetLocalPlayer FAQ:
6. Unit color, transparancy, size/scale for 1 player only?

Question - this cause desyncronization?
Answer - No - tested myself

  • Test 1
    • Events
      • Player - Player 1 (Red) types a chat message containing test as An exact match
    • Conditions
    • Actions
      • Set Player = (Triggering player)
      • Set Unit = Peasant 0000 <gen>
      • Set Alpha = 100
      • Custom script: if GetLocalPlayer() == udg_Player then
        • Set Alpha = 0
      • Custom script: endif
      • Animation - Change Unit's vertex coloring to (100%, 100%, 100%) with Alpha transparency
 
Status
Not open for further replies.
Top