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

'Pylon' Special Effect

Status
Not open for further replies.
I need to display special effects for just one player. More specifically, I have this building that basically behaves a bit like a pylon from StarCraft, so when I select that building, the range of all buildings of the same type owned by the player is shown, but to that player only. If that could be done with an Ubersplat, that would also help.

Is there a way to achieve this? I don't know JASS or vJASS, so if you could explain it to me like I'm 5, that would help :p
 
Level 20
Joined
Jul 14, 2011
Messages
877
Somewhere in the intialization put this:
  • Custom script: set udg_LocalPlayer = GetLocalPlayer()
Then when you need it:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • LocalPlayer Equal to YourPlayer
    • Then - Actions
      • ...
    • Else - Actions
      • ...
In your case YourPlayer should be the owner of the building.
 
Status
Not open for further replies.
Top