HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Replacing a Destructible After it's Been Destroyed

05-07-2005, 03:22 PM#1
Father_Chaos
I want that, when a unit destroys a specific cage, it drops a corpse. I have 2 problems:

1)When I put Event: Destructible - Cage x <gen> dies, the cage is destroyed when the map starts.

2)I do not know how to produce a corpse sitting at the exact spot where the destructible was destroyed... I tried Action: Destructible - Create a Corpse at (Position of (Dying destructible)) facing (Random angle) with scale 1.00 and variation 0, where Corpse was a destructible I created using the same model as the doodad Corpse Sitting.

Thanks in advance for your help!
05-08-2005, 02:19 AM#2
Guest
I dont know about destructables but you could make a unit with the same modles as it and use this:

Event
A unit dies
Condtions
Dying unit is equal (unit name)
Actions
Create (corpse unit) at position of dying unit


Hope that helps.
05-08-2005, 07:39 AM#3
Raptor--
Quote:
Originally Posted by Father_Chaos
I want that, when a unit destroys a specific cage, it drops a corpse. I have 2 problems:

1)When I put Event: Destructible - Cage x <gen> dies, the cage is destroyed when the map starts.

2)I do not know how to produce a corpse sitting at the exact spot where the destructible was destroyed... I tried Action: Destructible - Create a Corpse at (Position of (Dying destructible)) facing (Random angle) with scale 1.00 and variation 0, where Corpse was a destructible I created using the same model as the doodad Corpse Sitting.

Thanks in advance for your help!

1) i'm not sure i understand, when you use the event the cage starts dead? an event like that would do nothing to kill the cage on map init, since the only events that occur on map init is map initialization (and game time 0 seconds is immediate)
i can't say much more because the info u gave me makes no sense
2) that looks pretty right, what happens when you try to make the destructable? does it not appear at all? is it still pathing blocked with no model? does it appear in the wrong spot? i need a bit more info

also posting the entire trigger wouldn't hurt
05-09-2005, 12:12 AM#4
Father_Chaos
Here is the trigger... and I will post the map too (I know the map is the most almighty crappy sh!t you'll ever see but it is only a test map )
Code:
Cage
    Events
        Destructible - Cage 0302 <gen> dies
    Conditions
    Actions
        Destructible - Create a Corpse at (Position of (Dying destructible)) facing (Random angle) with scale 1.00 and variation 0
05-09-2005, 12:20 AM#5
Raptor--
i don't see what your problem is, i loaded up the map killed the cage, and a corpse appeared where the cage was
05-09-2005, 11:25 AM#6
Father_Chaos
Uh WtF

Ummmmmmmmmmmmm it works now... oh well :\

I didn't change the trigger meanwhile... strange.... and I tested the map lots of times and it was still doing the same thing... a bug maybe...

Well thanks and im sorry to have wasted your time here's a rep in exchange