• 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.

Kill Unloaded Units at Death of Transporter

Status
Not open for further replies.
Level 8
Joined
Mar 23, 2007
Messages
302
Whats about:
I have some Units (Transporter,Turret,...etc)
Those have loading ability.
Everyone is able to get the controll and the number od loaded units is stored
with the costum vaule.

The Problem:
The units stay alive, if the Transporter dies...
how to change that?

greets Equal
 
Level 7
Joined
Mar 12, 2006
Messages
407
Where are the transported units ? Are they loaded into the unit just like in a goblin zeplin ?
If so make your Transporters use the zeplin style of transport so they get that thunderclap buff if they 'fall' out the transport
Use a trigger which shoots on die of transporter type units which picks all units near dying transporter which have the buff and kill them
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
-I don't think it's possible to solve with the object / ability editor.
-I didn't find a function to get the unloaded unit (there is no such function, I believe)
-I didn't find a EVENT_UNIT_UNLOADED, I'm sure there is no event like this

As apocalypse dude said, when a zeppelin dies its unloaded units get the Dizziness debuff. So create his trigger, that's the easiest way to solve this problem, I think.
 
Level 8
Joined
Mar 23, 2007
Messages
302
Thx for the help, this realy solves the problme,
but i would need some more information.
What integerID does the Buff have? is it realy the same as the ThunderClap ?
And how long does it stay.

greets Equal
 
Level 11
Joined
Jun 21, 2007
Messages
505
Sorry, but you can make a GUI trigger and just convert it to JASS and then check fir errors.
  • Events:
    • Unit - A unit dies
  • Conditions:
    • Unit type of (dying unit) equal to Transporter
  • Actions:
    • Unit Group - Pick every unit in region (position of dying unit with offset), matching (matching unit) has buff Diziness, and do Unit - Remove/Kill/explode
If trigger doesn't work, put Wait 0.01 seconds before doing the action.
And you can use "Event Response - Triggering unit" for any event response.
 
Status
Not open for further replies.
Top