T]i[T]a[N
New Member
- Reaction score
- 0
Im looking for a trigger so that when a unit touches a certain terrain it dies, I dont want to use a region terrain death because I need alot of them and its glitchy, thx for the help
KillEm
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Terrain type at (Position of (Matching unit))) Equal to Lordaeron Summer - Dirt)) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Code:KillEm Events Time - Every 0.10 seconds of game time Conditions Actions Unit Group - Pick every unit in (Units in (Playable map area) matching ((Terrain type at (Position of (Matching unit))) Equal to Lordaeron Summer - Dirt)) and do (Actions) Loop - Actions Unit - Kill (Picked unit)
It leaks though, so create a unit group variable and then destroy force with custom script.