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

Making a unit die on entering a certain terrain

Status
Not open for further replies.
Level 4
Joined
Jul 22, 2010
Messages
63
Well, I need a trigger that makes a unit die when the unit enters a terrain (Barres - Dirt), I tried everything, It was impossible! I have to make this trigger for 10 units Retard[1,2,3,4,5,6,7,8,9,10} please, help me!
 
Level 5
Joined
Jan 15, 2009
Messages
80
What you would have to do (Only way i know how) is to a trigger at the beginning of the game that set's the unit to a Variable, and then make a timer in a different trigger, Every 0.03 seconds should be good. After that make a action If ((Terrain type at (Position of Retard[1])))Equal to Lordaeron Summer - Dirt) then do (Unit - Kill Retard[1]) else do (Do nothing)
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
  • Actions
    • If ((Terrain type at (Position of Retard[1])))Equal to Lordaeron Summer - Dirt) then do (Unit - Kill Retard[1]) else do (Do nothing)
 
Last edited:
Status
Not open for further replies.
Top