HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

trigger Help on a dead unit

04-08-2004, 03:00 PM#1
samuraipanda
Hello there.
I need help on a trigger: I want to make that when a unit dies there will be a fire that comes where the unit stands (or where he dies) and damage all around the dying unit. It must be the xact moment when the unit dies

Thx For helping
04-08-2004, 08:38 PM#2
eva01
Quote:
Originally Posted by samuraipanda
Hello there.
I need help on a trigger: I want to make that when a unit dies there will be a fire that comes where the unit stands (or where he dies) and damage all around the dying unit. It must be the xact moment when the unit dies

Thx For helping

make a dummy unit. Set the dummy unit to attacks enabled(none), give it the invulnerable (neutral hostile) ability, locust ability, set movement speed to 0, change the model to whatever fire effect and give it a custom immolation ability. Or you can just give the units the AOE Damage upon death spell and just create a special effect when it dies with whaterver fire effect you want.

Here is an example from one of my units in my map. The unit(HeroArray[11]) has the AOE Damage upon death ability.

Code:
Reincarnation BOOM
    Events
        Unit - A unit Dies
    Conditions
        (Dying unit) Equal to HeroArray[11]
    Actions
        Special Effect - Create a special effect at (Position of (Dying unit)) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
        Special Effect - Destroy (Last created special effect)
04-09-2004, 12:52 AM#3
samuraipanda
o_O
Quote:
Originally Posted by eva01
make a dummy unit. Set the dummy unit to attacks enabled(none), give it the invulnerable (neutral hostile) ability, locust ability, set movement speed to 0, change the model to whatever fire effect and give it a custom immolation ability. Or you can just give the units the AOE Damage upon death spell and just create a special effect when it dies with whaterver fire effect you want.

Here is an example from one of my units in my map. The unit(HeroArray[11]) has the AOE Damage upon death ability.

Code:
Reincarnation BOOM
    Events
        Unit - A unit Dies
    Conditions
        (Dying unit) Equal to HeroArray[11]
    Actions
        Special Effect - Create a special effect at (Position of (Dying unit)) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
        Special Effect - Destroy (Last created special effect)

Thx but there is something else in my mind.... AOE damage upon death... Help plz :> how do i make that ? im mayby a complete morron now..... o_O
04-09-2004, 02:05 AM#4
eva01
Quote:
Originally Posted by samuraipanda
o_O

Thx but there is something else in my mind.... AOE damage upon death... Help plz :> how do i make that ? im mayby a complete morron now..... o_O

In the Object Editor click on the Abilities tab and create(file>new custom ability) a new custom ability. Type in the name of the new ability that you want. Then select UNIT in the drop down box and select the ability AOE Damage Upon Death (Goblin Mine).
04-09-2004, 12:53 PM#5
samuraipanda
Quote:
Originally Posted by eva01
In the Object Editor click on the Abilities tab and create(file>new custom ability) a new custom ability. Type in the name of the new ability that you want. Then select UNIT in the drop down box and select the ability AOE Damage Upon Death (Goblin Mine).
o_O HAHAHA.... of course *hits myself* Thx alot dude...:D
how could I be so damn stupid... :o