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

'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 19
Joined
Jul 14, 2011
Messages
875
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