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

[General] How to put unit in a cage?

Status
Not open for further replies.
It's possible, 2 ways:

1- A Unit casts ability on another unit, you move the target unit eventually to the cage , decreasing his size (Optional), and remove his collision, also pause him.You can skip 'Moving' idea because it's not very necessary if you plan to put the unit directly in the cage.

2- Create a special effect under the unit using Cage model ( I didn't try this , it may be bugged) [Either using create at point or on unit]


I wish you a good luck
 
I wonder what you mean by "inside"? Do you mean that there is the cage and you can still see the caster in it? Or do you mean it in a more general way as in "there's cage that spawns/shows the caster upon death"?
Both should be possible imo (tho I didn't test it myself). I would try it by first creating the destructible cage and placing it where it's supposed to be. Add the cage into a "Destructible dies" event + bind to it the caster using hashtable and handle IDs. Then I would move the caster via SetUnitX and SetUnitY functions which ignore pathing, so they may very well move the unit inside the cage.
 
Status
Not open for further replies.
Back
Top