• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

Any way to Load enemy units?

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
201
I have a flytrap style building that I want to load nearby enemies into itself. Is there any way to make the Load ability or the Load Order force a unit into the cargo hold without it belonging to you?
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
i think you will need trigger for that
try to hide -load unit icon or just make another one icon that will be chain lightning (same range as loading unit range and 0 damage, 1 target)

>units start casting an ability
>>ability being cast equal to (chain)
-change ownership of (target unit of ability being cast) to owner of unit(casting unit)
<you will maybe need to use wait 0.00 sec but try without it first>
set custom value of target unit of ability being cast to (player number of owner of unit (target unit of abiltiy being cast)
order casting unit to load target unit of ability being cast


you will need this with blue letters if you wish to return the real ownership
when units is unloaded
-change his ownership to player index (custom value of that unit)


or go on (load unit ability) and try > targets allowed > enemy , but i don´t believe it will work
 
Last edited:
Status
Not open for further replies.
Top