Terrain Death Help plz

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
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
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.
 

Shadow14l

New Member
Reaction score
11
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.

Here's the trigger if you were to remove the memory leaks (helps a lot!)

TempPoint - Point Variable

zomg.jpg
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top