Husky
Local Lurker
- Reaction score
- 119
Hi,
What I want to happen is if a certain tpye of unit come within a different type of unit, the unit dies.
Something like this:
Tagged
Events
Unit - A unit comes within 175.00 of Hider 0002 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Tagger
Actions
Unit - Kill Hider 0002 <gen>
Unit - Kill Tagger 0000 <gen>
Wait 2.00 seconds
Unit - Remove Hider 0002 <gen> from the game
Unit - Remove Tagger 0000 <gen> from the game
Unit - Create 1 Tagger for (Owner of (Triggering unit)) at (Random point in Region[1]) facing Default building facing degrees
Unit - Create 1 Hider for (Owner of (Triggering unit)) at (Random point in Region[1]) facing Default building facing degrees
Game - Display to (All players) the text: ((Name of (Triggering player)) + Is it, watch out!)
Okay my problem is here:
Events
Unit - A unit comes within 175.00 of *Hider 0002* <gen>
Because there are going to be multiple "Hiders" how do I set this to something like:
Unit - A unit comes within 175.00 of *Hider (as in, any Hider)* <gen>
I have added Unit Variables but it doesn't let me select them in: of Hider <gen>
Any ideas?
-Husky
What I want to happen is if a certain tpye of unit come within a different type of unit, the unit dies.
Something like this:
Tagged
Events
Unit - A unit comes within 175.00 of Hider 0002 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Tagger
Actions
Unit - Kill Hider 0002 <gen>
Unit - Kill Tagger 0000 <gen>
Wait 2.00 seconds
Unit - Remove Hider 0002 <gen> from the game
Unit - Remove Tagger 0000 <gen> from the game
Unit - Create 1 Tagger for (Owner of (Triggering unit)) at (Random point in Region[1]) facing Default building facing degrees
Unit - Create 1 Hider for (Owner of (Triggering unit)) at (Random point in Region[1]) facing Default building facing degrees
Game - Display to (All players) the text: ((Name of (Triggering player)) + Is it, watch out!)
Okay my problem is here:
Events
Unit - A unit comes within 175.00 of *Hider 0002* <gen>
Because there are going to be multiple "Hiders" how do I set this to something like:
Unit - A unit comes within 175.00 of *Hider (as in, any Hider)* <gen>
I have added Unit Variables but it doesn't let me select them in: of Hider <gen>
Any ideas?
-Husky


