• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[Trigger] Exploding a Dead Unit, Possible?

Status
Not open for further replies.
Nah, that one happens with a trigger of type:
Events
Unit - A unit dies
Conditions
Actions
Set Point1 = (Position of (Dying unit))
Unit - Cause (Triggering unit) to damage Point1 bla bla
Custom script: call RemoveLocation (udg_Point1)

Dead units can't explode; i mean picking every unit matching (Matching unit) is dead Equal to True, and then Unit - Explode it, it will not work.
 
Hmm... I'll try that out.

But wait... dead units can get removed from the game right? If so I can just make a special effect and remove the unit.

Edit:

I've made it pretty simple, once unit takes the damage, it dies and you get the gold you just remove it and create special effect, looks the same as if exploding it :D

Still, thanks guys ^^

~Berz
 
Last edited:
Level 11
Joined
Apr 6, 2008
Messages
760
this is how Explode Unit works
JASS:
function ExplodeUnitBJ takes unit whichUnit returns nothing
    call SetUnitExploded(whichUnit, true)
    call KillUnit(whichUnit)
endfunction

  • Custom script: call SetUnitExploded(whichUnit, true) //this makes the unit explode when it dies
  • Unit - Cause (Unit) to damage (Unit), dealing 100000000.00 damage of attack type Spells and damage type Normal //just some crazy amout of damage so it dies
Learn jass instead !
Dead units can't explode; i mean picking every unit matching (Matching unit) is dead Equal to True, and then Unit - Explode it, it will not work.

You could Pick dead units and create a Effect on thier location
 
Last edited:
Status
Not open for further replies.
Top