View Full Version : Unit killing destructible
nedio95
08-14-2012, 07:11 PM
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
08-14-2012, 07:29 PM
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
defskull
08-15-2012, 01:21 AM
((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.
mckill2009
08-15-2012, 02:18 AM
i suggest change your destructable lever to a unit then you can use that ((Killing unit) is A Hero) Equal to True
Event
Unit - Dies
Conditions
Unit - Type of triggerunit equals to Lever
((Killing unit) is A Hero) Equal to True
Actions
Actions
nedio95
08-15-2012, 07:40 AM
@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
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.
Search Engine Optimization by
vBSEO 3.5.1 PL2