Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Can you kill a unit in triggers and refer to it as dying unit?
Can you kill a unit in triggers and refer to it as dying unit?
03-04-2003, 09:20 PM
#1
FyreDaug
I want to kill a unit from triggers (Unit - Kill Unit), but can I refer to it as a unit owned by player 1 dies?
I don't have WE working right now, so I was hoping you can solve this issue so I can work on it later. Thanks.
03-04-2003, 09:35 PM
#2
rwxr-xr-x
If you mean will another trigger fire with an event of Unit - A unit owned by Player X dies, when your current trigger kills the unit, yes it will.
03-04-2003, 09:36 PM
#3
Aiursrage2k
I think it would depend on the situation, but if you have killed a unit via triggers, you already have the unit referance, otherwise you would not be able to kill the unit.emote_sweat
03-04-2003, 10:22 PM
#4
FyreDaug
pick all units in region, it selects a few and kills them, and I need to refer to the killed one. So thanks.