HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

corpse explosion

11-19-2002, 11:19 PM#1
ChronOmega
how can i make it look like a corpse explodes?
also i need to remove the corpse at the same time

thx in advance
11-19-2002, 11:36 PM#2
Trav
Hmm...

Well since you can't really click on the dead corpse, what you could do (assuming you use relatively few types of units that you want this to apply to) is to add about 200 hp to each applicable unit, then when it's hp fall below 200, pause it, play its death anime, and make it act as a neutral allied unit. Then when you use CE (and I'm not sure what you are going to use to do this (spell, item, etc), have the target unit explode via the unit - explode trigger. That's a pretty crude way and it has room for error and restrictions, maybe I'll think of something better when I have more time.
11-20-2002, 12:05 AM#3
Deicide
Well, you CAN pick up corpses.

Do something like this:

- Create a Region with size depending on the size of the explosion.

- I don't know which events and conditions you want, so let's get to actions:

Actions: Region - Center <Region> at Point - Position of <Unit>
Unit - Remove Unit
Special Effects - Create a <SFX> at Center of <Region>
Unit Group - Pick Up Every Units in <Region> and do Unit - Set HP to <Picked Unit>'s Current HP - <damage of explosion>
Wait <time before removing Special Effect> seconds
Special Effects - Remove Last Created Special Effect

Notes:
<Region> is the created region
<Unit> is the dead unit
<SFX> is the Special Effect. Sorry, I don't know which Effect best suits a explosion, you will need to find for yourself.

If you need help to select the <Unit> your conditions probably will need to have the Boolean "Unit is Alive equal to False". This will pick up existing units that have been killed but were not yet removed from the game.
11-20-2002, 12:51 AM#4
ChronOmega
no i just need the graphic of the corpse explodinfg not damage or anything
11-20-2002, 04:03 AM#5
Phil_123
unit- explode YOUR UNIT

it's just that simple
11-20-2002, 04:22 AM#6
Insaniteus
I'd use WarStomp for the special effect.

Abilities\Spells\Orc\Warstomp\Warstomp.mdl

To remove the corpse, simply pick all units in the region centered on the target area matching condition matching unit is dead and move picked unit to (Some place where the players can't get to.)

That should work.

-Insaniteus-