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

[Trigger] Confuddling Trigger!

Status
Not open for further replies.
Level 19
Joined
Oct 1, 2008
Messages
1,667
[SOLVED]
I need help making a trigger that, in some way or another, makes a unit unselectable or invisible when it comes within 150 or so range of a destructible!
This is to ensure that someone cant just drag their mouse over the screen to find a unit that is meant to be hiding.
Making regions will not work as new doodads will be popping up and getting destroyed.
 
Last edited:
Level 19
Joined
Oct 1, 2008
Messages
1,667
Locust doesnt work, as the unit will need to be attacked and moved around (I tried it) and Invisibility wont work because it allows the player to stand out in the open, making it hard to know where to look...

PS. Yay Disco Chicken!


EDIT. YAY I worked it out! I just disabled pre- and box-selection! It was so simple!
Thanks anyway
 
Last edited:
Level 7
Joined
Aug 15, 2007
Messages
52
u can try this, not sure if it works tho. just theory. to disable healthbar set selection circle to -1.
And then do this
its vertex color to invis, at same time as setting its flying height to 2000 (or very high) or all players accept the localplayer. Reason why is to avoid desync, cus as long as u call the same function for all players, it doesnt matter value. Just make sure to not do a GetUnitFlyheight when it is hiding... cus tat will desync (different fly height)
 
Level 7
Joined
Jul 20, 2008
Messages
377
Pre-selection is when you just hover your mouse over an unit and you see that dim green circle appear beneath the unit. It also shows that little box above the unit with stuff like the player's name and the unit level.

Box-selection is, as the name implies, where you drag the mouse to select multiple units.
 
Level 12
Joined
Mar 23, 2008
Messages
942
Pre-selection is when you just hover your mouse over an unit and you see that dim green circle appear beneath the unit. It also shows that little box above the unit with stuff like the player's name and the unit level.

Box-selection is, as the name implies, where you drag the mouse to select multiple units.

But how do you disable that?
 
Level 7
Joined
Jul 20, 2008
Messages
377
I believe there are triggers for that. Somewhere along the Game section or player.
 
Status
Not open for further replies.
Top