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

Showing (selection) circles to players

Status
Not open for further replies.

Vunjo

Hosted Project: SC
Level 19
Joined
Jul 1, 2010
Messages
1,340
Greetings. I was thinking of creating a system that would create some sort of power circle around a point when certain spells are cast. Now my question is, is there a way to show green/red circles to players? Is there a way to show green circles to one and red to others? Is there a way to simply show the select circle of a unit to player, or are there better ways?

Thanks in advance.
 
Level 29
Joined
Sep 26, 2009
Messages
2,595
Well, best bet would be a white circle. The thing is, that you would need to use the GetLocalPlayer function, so enemies of the spell caster see the circle as red, while allies as green. However you cannot scale special effect, so a dummy unit comes to mind - however showing/hiding units via GetLocalPlayer may cause desync, which leads to why I wrote a white circle - changing unit's color via GetLocalPlayer does not cause desync.

So you would end up with a dummy unit with a model of some white circle. It's easy to scale, move, etc. and is able to show different colors to different players.
 
Level 29
Joined
Sep 26, 2009
Messages
2,595
Where do I find the white circle, or do i need to import it?
I don't know if there is such circle, as I've never had need for it. If you can't find one, then you may want to find one on the web and import it.
(tbh I think there should be one, since there is a selection circle in game already when you select unit, right?)


How does GetLocalPlayer work exactly?
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/getlocalplayer-225738/
I advise you pay attention to the "Desyncronization" part.


Do I change the color of circle through GetLocalPlayer?
Yes, that's what I meant.
-------------
An example spell already made in WCIII, which uses GetLocalPlayer is Mirror Image.
When your hero uses this spell, the images have blue color (so you know which are images and which one is the real hero), while other players see the hero and the images with same colors (thus they have no idea which one is the real one).

You would basically do the same - if player is ally, change color to XYZ, if enemy, change color to ABC
 

Vunjo

Hosted Project: SC
Level 19
Joined
Jul 1, 2010
Messages
1,340
I don't know if there is such circle, as I've never had need for it. If you can't find one, then you may want to find one on the web and import it.
(tbh I think there should be one, since there is a selection circle in game already when you select unit, right?)



http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/getlocalplayer-225738/
I advise you pay attention to the "Desyncronization" part.



Yes, that's what I meant.
-------------
An example spell already made in WCIII, which uses GetLocalPlayer is Mirror Image.
When your hero uses this spell, the images have blue color (so you know which are images and which one is the real hero), while other players see the hero and the images with same colors (thus they have no idea which one is the real one).

You would basically do the same - if player is ally, change color to XYZ, if enemy, change color to ABC

Alright, thanks for all the help.
 
Status
Not open for further replies.
Top