• 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] How to put unit in a cage?

Status
Not open for further replies.
Level 15
Joined
Oct 29, 2012
Messages
1,474
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
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
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.
Top