HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Corpses Help

03-13-2005, 07:52 PM#1
Shadow_Strike
A simple question I hope

When a unit dies, I may want the unit to play its death animation as usual, but it doesnt decay, so its still looks like the unit and not the skeleton or fleshy stuff.

I tried pausing the unit after it died (didnt think it would work, and viola, it didnt)
I tried created a corpse of the dying unit type but that didnt work either (especially for the skeleton)

could anyone hint or tell me how to accomplish this?

edit: Im looking at the gameplay constants right now on decay
so I THINK this will solve my problem.


edit: it did for the most part - but sometimes when a unit died while fighting, they just froze there in their attacking stance or during an attack.
03-13-2005, 08:00 PM#2
Guest
Go in advanced => game constants (or something like that)
There is a variable called the decay rate and cadaver disappearance or something (I don't have english editor :-/)
03-13-2005, 08:02 PM#3
Shadow_Strike
it did for the most part - but sometimes when a unit died while fighting, they just froze there in their attacking stance or during an attack.
03-17-2005, 06:33 PM#4
Guest
Somewhere in trigger editor, you can make a corpse that stays there. I havent done it myself so i cant be more specific, but MAYBE you will find your answers there.
03-17-2005, 07:05 PM#5
Strategy Master
Did u try Unit-Create pernament corpse

Its skeletal for 8 seconds but then becomes fleshy pernamently
03-17-2005, 07:07 PM#6
divine_peon
use this trigg.

Code:
Event:
A unit dies

Actions:
Unit - Create 1 unit type of dying unit at position of dying unit for (place a player here)
Animation - play last created unit's death animation


if you want to remove the dying unit, add Unit - Remove dying unit
03-17-2005, 09:57 PM#7
johnfn
This will probably work better... yours just plays the dying animation rather then actually killing the unit, btw.

Code:
perminent corpse
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Unit - Create a permanent Skeletal (Unit-type of (Dying unit)) corpse for Player 1 (Red) at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees

That should work pretty well.
03-17-2005, 10:37 PM#8
sc_freek
Quote:
Originally Posted by divine_peon
use this trigg.

Code:
Event:
A unit dies

Actions:
Unit - Create 1 unit type of dying unit at position of dying unit for (place a player here)
Animation - play last created unit's death animation


if you want to remove the dying unit, add Unit - Remove dying unit
Give the created unit locust if you don't want it to be selectable...