- 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
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions