• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 3
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