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

How can I do this ?

Status
Not open for further replies.
Level 5
Joined
Jan 30, 2013
Messages
124
I am making a 12-player map. It contain 12 players = 12 users (there aren't computers). I want create a unit which is belong to player 1 but player 1 can't control it. It is like Undying's zombie in DotA. Zombies which are created can't be controlled by Undying (user). How can I do this ?:vw_wtf:
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Don't hide/unhide the unit, only add/remove Locust. The unit can't be targeted by user controls, but it can be auto-targeted by units.

Hiding/unhiding enables the unit to be drag-selected and then controlled.

Bear Form/Metamorphosis allows the unit to be targeted.

This is the best solution I think:
  • Remove Locusr
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence // just a test event
    • Conditions
    • Actions
      • Set u = unit
      • Custom script: call UnitAddAbility(udg_u, 'Aloc')
      • Custom script: call UnitRemoveAbility(udg_u, 'Aloc')
      • Unit - Add Metamorphosis to u
      • Unit - Order u to Night Elf Demon Hunter - Metamorphosis
      • Unit - Remove Metamorphosis from u
Use Bear Form for non heroes and Metamorphosis on heroes.
 
Status
Not open for further replies.
Top