M
Maximus
Guest
Code:
Mass Death Loop A
Events
Conditions
Actions
Unit - Create 1 Death for (Owner of (Triggering unit)) at TempPoint facing (Facing of (Triggering unit)) degrees
Set TempPoint = (Position of (Triggering unit))
Custom script: local location TempPoint = GetUnitLoc(GetLastCreatedUnit())
Custom script: if (udg_TempInteger <= 0) then
Custom script: set udg_TempUnitGroup = GetUnitsInRangeOfLocMatching(1000.00, GetRectCenter(TempPoint), Condition(function MatchOpp))
Custom script: endif
Custom script: set udg_TempUnit = GetClosestUnit(udg_TempUnitGroup, udg_TempPoint)
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning TempUnit
Custom script: call RemoveLocation(udg_TempPoint)
Custom script: call RemoveLocation(TempPoint)
Unit Group - Remove TempUnit from TempUnitGroup
Set TempInteger = (TempInteger + 1)
If (TempInteger Greater than or equal to 2) then do (Trigger - Run Mass Death Destroy <gen> (checking conditions)) else do (Do nothing)