M
madmike
Guest
Hey there. As you may have already guessed, I need some help with a problem I've encountered and just can't get out of.
I'm working on a map that includes a gameplay element of dodging enemies -- i.e., touch them and you die -- and I have hit a snag.
I'm confused about how to set a trigger using a Hero that is created after the game starts (not one previously placed).
The Event for the trigger is "Unit - A unit comes within 70.00 of X". The "X" unit, though, is where the problem lies. The player-owned Hero only enters the game after it begins, so I can't pick what unit I want. The only options are heroes that are currently on the map... but there aren't any. How can I specify who dies and is revived when one of the four created heroes gets too close to an enemy? I have the rest of the trigger in the bag, with the Hero being revived after a set amount of time. The only thing is that, like I said, I can't specify the Hero. This is basically because the player chooses his Hero at the start of the game, and it is then created and sent to its starting position.
If anyone can tell me how to specify the seperate Heroes (maybe through variables, but I couldn't find a suitable one) in that trigger, I would appreciate it greatly (and Last Created Unit wouldn't work, because there are four Heroes created). Thanks!
~Mike
I'm working on a map that includes a gameplay element of dodging enemies -- i.e., touch them and you die -- and I have hit a snag.
I'm confused about how to set a trigger using a Hero that is created after the game starts (not one previously placed).
The Event for the trigger is "Unit - A unit comes within 70.00 of X". The "X" unit, though, is where the problem lies. The player-owned Hero only enters the game after it begins, so I can't pick what unit I want. The only options are heroes that are currently on the map... but there aren't any. How can I specify who dies and is revived when one of the four created heroes gets too close to an enemy? I have the rest of the trigger in the bag, with the Hero being revived after a set amount of time. The only thing is that, like I said, I can't specify the Hero. This is basically because the player chooses his Hero at the start of the game, and it is then created and sent to its starting position.
If anyone can tell me how to specify the seperate Heroes (maybe through variables, but I couldn't find a suitable one) in that trigger, I would appreciate it greatly (and Last Created Unit wouldn't work, because there are four Heroes created). Thanks!
~Mike