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

[Trigger] How to change unit to not unit object?

Status
Not open for further replies.
Level 1
Joined
Feb 26, 2014
Messages
2
Well I have that problem. I want to make one map that will end by killing a unit(I did that trigger already) and that unit will turn into cage after death but I dont know how to turn unit into cage.
 
Your procedure can be described by:
- Track Unit Dies Event
- Check within specific condition if dying unit equals to your chosen unit
- Actions: remove dying unit from the game
- Action2: create "cage" (unit/dest?) on map and set its location to the dying unit's one.

In GUI there is even an action regarding to "replace" functionality, although it refers only to unit-unit replacements.

Clean memory leaks. Enjoy.
 
Level 1
Joined
Feb 26, 2014
Messages
2
Your procedure can be described by:
- Track Unit Dies Event
- Check within specific condition if dying unit equals to your chosen unit
- Actions: remove dying unit from the game
- Action2: create "cage" (unit/dest?) on map and set its location to the dying unit's one.

In GUI there is even an action regarding to "replace" functionality, although it refers only to unit-unit replacements.

Clean memory leaks. Enjoy.


Yeah I know about that replace but it is only to units so I cant use it you know I need typical cage. Thanks Ill try your tip out.
 
I'm confused. Are you just asking how to create a cage where the unit dies? If so, just use the event [unit - dies] and the condition [unit is equal to (your unit)] and then set Temp_Point at (position of (your unit)] and remove (your unit) then create the doodad cage at Temp_Point.

I think maybe I am missing something. That seems too easy.

You can also just make the cage a unit with Object editor and use replace unit.
 
Status
Not open for further replies.
Top