• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] How do I skip a loop?

Status
Not open for further replies.
Level 19
Joined
Oct 29, 2007
Messages
1,184
  • For each (Integer A) from 1 to 50, do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • bool_path Equal to True
        • Then - Actions
          • Custom script: set a = a-5
          • Custom script: call RemoveLocation(udg_tmp_loc2)
          • Custom script: set udg_tmp_loc2 = PolarProjectionBJ(udg_tmp_loc, a, GetUnitFacing(udg_Player[udg_tmp_integer-1]))
          • Custom script: set udg_bool_path = IsTerrainPathingType(GetLocationX(udg_tmp_loc2), GetLocationY(udg_tmp_loc2), TERRAIN_PATHING_WALKABLE)
        • Else - Actions
          • Custom script: call RemoveLocation(udg_tmp_loc2)
          • Custom script: call SetCameraFieldForPlayer( Player(udg_tmp_integer-1), CAMERA_FIELD_TARGET_DISTANCE, I2R(-a), 0.08 )
          • AND HERE I WANT THE LOOP TO END
How do skip the remaining loop when the else occurs? : 0
 
Status
Not open for further replies.
Top