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

Unselectable unit

Status
Not open for further replies.
Level 1
Joined
Nov 23, 2011
Messages
2
Hi. I am creating a map, which has 8 player slots, but each of those players need to have units, which they can't control. So, I could do this with using remaining player slots, but there are not enough of them.
So, I need to do the uncontrollable units to be players own units, but just not controllable(moving through a lane with an attack move command) by the player.

I am aware of the locust ability, which makes the unit unselectable and invulnerable, but I can't have them be invulnerable.

Can anyone help me out, how to achieve this?

Thanks,
baburo.
 
Last edited:
Level 3
Joined
Oct 28, 2011
Messages
23
Uh do you want the unit to be SELECTABLE but not ORDERABLE? A simple trigger that automatically deselect selected unit you own(except when selecting your hero) can help if you want it to not to be selectable...??
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 017
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set u = (Random unit from (Units currently selected by Player 1 (Red)))
      • Custom script: call UnitAddAbility(udg_u, 'Aloc')
      • Custom script: call UnitRemoveAbility(udg_u, 'Aloc')
      • Unit - Hide u
      • Unit - Unhide u
You can't select the unit, but units can attack it.
 
Status
Not open for further replies.
Top