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

Unit killing destructible

Status
Not open for further replies.
Level 12
Joined
Mar 24, 2011
Messages
1,082
  • Death
    • Events
      • Destructible - A destructible within Region 014 <gen> dies
    • Conditions
      • (Destructible-type of (Dying destructible)) Equal to Lever
      • ((Killing unit) is A Hero) Equal to True
    • Actions
      • Game - Display to (All players) the text: wraaagh
So what should be this line ?
  • ((Killing unit) is A Hero) Equal to True
I tried a lot of things, almnost evrything possible and still cant make it work...
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
try this
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
        • Else - Actions
          • Unit - Order (Triggering unit) to Stop
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • ((Killing unit) is A Hero) Equal to True
This condition is an event-response from Unit - A unit Dies Event, not Destructible dies event.
Well, does it matter whether the killing unit is a Hero or not for the Lever ?
I'm guessing that this Lever has something to do with opening gates or unlocking something, right ?
Well, does it matter who kills it ?

I think that once a lever is destroyed, it will trigger any gates/doors/etc no matter who kills it.

Try this trigger;
  • Melee Initialization
    • Events
      • Destructible - Lever 0000 <gen> dies
    • Conditions
    • Actions
      • -------- YOUR ACTIONS HERE --------
Since it's a Lever, it should be pre-set inside the map, right ?
Meaning that, the Lever is created via World Editor, not in-game, right ?
Therefore, you can use the Event Destructible - Destructible Dies and just select the Lever.
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
@defskull: No, there are 4 levers which have to be pulled in the same time (not the same, like in 1 sec interval) by a hero, hero is a must in this one. But I was considering your suggestion before starting the thread but... 9?? triggers... I think thats is too much. And again no way to detect if the killer is a hero.

@mckill2009:Will do, tnx
 
Last edited:
Status
Not open for further replies.
Top