units dieing in snow

oossx

New Member
Reaction score
0
how do i make units that enter snow die?i cant find anything in events except "a (unit) enters a (region)" but i want when "a (unit) enters a (terrain tileset)"
 

oossx

New Member
Reaction score
0
but it is too much work if you actually look at the map because it is big and there are places that go diagonal meaning i have to put a region for each square.isnt there a way?
 

canons200

New Member
Reaction score
50
that is terrain, use the event check every 1 second, if anyone is at snow terrain, kill that unit.
 

mr-death

Acolyte
Reaction score
51
Check this out:
Trigger:
  • Trigger
    • Events
      • Time - Every 0.30 seconds of game time
    • Conditions
    • Actions
      • Set UG = (Units in (Playable map area))
      • Unit Group - Pick every unit in UG and do (Actions)
        • Loop - Actions
          • Set Point = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at Point) Equal to Icecrown Glacier - Snow
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
          • Custom script: call RemoveLocation(udg_Point)
      • Custom script: call DestroyGroup(udg_UG)


Notes: Every 0.30 < this is changeable.
And if you're using Lordaeron Winter - Snow, make sure to change that "Icecrown Glacier - Snow"

Another Note (edit):
And yeah, a note just for you new starters...
Don't try to look everything in the 'events' section, 80% of the gameplay modifications are located on 'conditions' and 'actions'. Just like this one. ;)
 
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