Problematic trigger

Xbing

New Member
Reaction score
0
I just cant figure out what is wrong with this trigger. it wont kill the unit.

Trigger:
  • Lethal Tiles
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Set Pathing_Lethal_RG = (Playable map area)
      • Set Pathing_Lethal_UG = (Units in Pathing_Lethal_RG)
      • Unit Group - Pick every unit in Pathing_Lethal_UG and do (Actions)
        • Loop - Actions
          • Set Pathing_Lethal_Unit_PT = (Position of (Picked unit))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Terrain type at Pathing_Lethal_Unit_PT) Equal to Dungeon - Lava
                  • (Terrain type at Pathing_Lethal_Unit_PT) Equal to Cityscape - Grass
                  • (Terrain type at Pathing_Lethal_Unit_PT) Equal to Icecrown Glacier - Snow
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
              • Do nothing
          • Custom script: call RemoveLocation (udg_Pathing_Lethal_Unit_PT)
      • Custom script: call RemoveRect (udg_Pathing_Lethal_RG)
      • Custom script: call DestroyGroup (udg_Pathing_Lethal_UG)


any help would be appreciated. thanks.
 

Xbing

New Member
Reaction score
0
i initially used matching unit. it didnt work so i tried this method. not working.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Trigger:
  • Set Pathing_Lethal_RG = (Playable map area)


Trigger:
  • Custom script: call RemoveRect (udg_Pathing_Lethal_RG)


NEVER use that combination !
You can never destroy a variable set to (Playable map area)...
It will render it unusable for the rest of the game !
And it doesn't leak either, so :D

Then it should work ;)
 

Xbing

New Member
Reaction score
0
:eek:OH!!!! nowonder when i 1st tested with the variable for unconditionally killing it worked. so it works only for the 1st time!!! HAHAHAHA thanks =)
 
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