• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] How can I avoid clicking units?

Status
Not open for further replies.
Player 12 is that a player too? if it isn't you can give player 12 units locust ability. But if it is a player. I don't think you can do that. Only like this :

  • Melee Initialization
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • etc
    • Conditions
  • (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) and ((Unit-type of (Triggering unit)) Equal to Your unit)
    • Actions
      • Selection - Clear selection for Player 1 (Red)
      • Selection - Clear selection for Player 2 (Blue)
      • Selection - Clear selection for Player 3 (Teal)
      • etc
 
I guess youre doing an escape map? so the units are already set i guess?
Then
Do like this:

  • Untitled Trigger 001
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Point = (Position of Peasant 0002 <gen>)
      • Set Temp_Group = (Units within 70.00 of Temp_Point matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
      • Custom script: call RemoveLocation(udg_Temp_Point)
      • Custom script: call DestroyGroup(udg_Temp_Group)
If you want the unit to die futher away from the unit the increase the 70. The other way if you don't want it to die so far away from the unit.
 
Status
Not open for further replies.
Back
Top