- Joined
- Jan 1, 2011
- Messages
- 1,534
-
Cant Attack Above
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
Set TempPoint[1] = (Position of (Attacking unit))
-
Set TempPoint[2] = (Position of (Attacked unit))
-
Custom script: set udg_TempReal[1] = GetLocationZ(udg_TempPoint[1])
-
Custom script: set udg_TempReal[2] = GetLocationZ(udg_TempPoint[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Range of ((Attacking unit) Greater than ((Current flying height of (Attacking unit)) - (Current flying height of (Attacked unit)) + (TempReal[1]))
-
Or - Any (Conditions) are true
-
Conditions
-
TempReal[1] Greater than (TempReal[2] + (100.00 + (Current flying height of (Attacked unit))))
-
TempReal[2] Greater than (TempReal[1] + (100.00 + (Current flying height of (Attacking unit))))
-
TempReal[1] Less than (TempReal[2] + (-100.00 + (Current flying height of (Attacked unit))))
-
TempReal[2] Less than (TempReal[1] + (-100.00 + (Current flying height of (Attacking unit))))
-
-
-
-
Then - Actions
-
Unit - Order (Attacking unit) to Stop
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_TempPoint[1])
-
Custom script: call RemoveLocation(udg_TempPoint[2])
-
-
(Excluding setting a unit's attack range to a variable)