• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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:
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...??
 
  • 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.
Back
Top