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

Variable does not work for declaring Event - Unit - Unit Within Range

Status
Not open for further replies.
Level 6
Joined
Mar 17, 2012
Messages
105
Event - Unit - Unit Within Range
A unit comes with in 256.00 range of Unit

* select Unit *

Preset: No unit
Variable: No generated variables of this type
[ Select a Unit ]

// The variable thing is, I do have a Unit variable. And it still says I don't have a variable of this type. So, why can't I select this variable?
 
Level 4
Joined
Feb 5, 2011
Messages
17
  • Trigger One
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Unit - Create 1 Peasant for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Set Boss = (Last created unit)
      • Trigger - Add to Trigger Two <gen> the event (Unit - A unit comes within 256.00 of Boss)
  • Trigger Two
    • Events
    • Conditions
    • Actions
      • Unit - Kill (Triggering unit)
But if you change the variable, you will have to repeat "Trigger - Add to Trigger Two <gen> the event (Unit - A unit comes within 256.00 of Boss)"

Also, if you don't want the trigger run for the first unit, you will have to add various conditions.
 
Status
Not open for further replies.
Top