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

[General] Equipping weapons?

Status
Not open for further replies.
Level 2
Joined
Jun 1, 2011
Messages
13
So I know how to replace a unit when an item is click, but that just looks noobish because it deselects the unit. Is there any easier way to change the unit to ranged attack or to melee attack depending on the weapon type?
 
Use Selection - Add (Last replaced unit) to selection for (Triggering player) to select it back :p
I wouldn't replace the unit, I would hide the bearer of the item and create a new one in its position. Then, save the new unit to the triggering unit through a hashtable, to unhide it and move it to the location of the "replaced" unit, when the item is supposed to switch the range again.
 
Status
Not open for further replies.
Top