Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TelePush

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Telekinetic Push

Actions


Set TelePushCaster = (Casting unit)


Set TelePushCasterPosition = (Position of TelePushCaster)


Set TelePushUnitsAffected = (Units within 700.00 of TelePushCasterPosition matching ((Owner of (Matching unit)) Not equal to (Owner of TelePushCaster)))


For each (Integer A) from 1 to 20, do (Actions)



Loop - Actions




Unit Group - Pick every unit in TelePushUnitsAffected and do (Actions)





Loop - Actions






Unit - Move (Picked unit) instantly to (TelePushCasterPosition offset by (5.00, 5.00))
TelePush

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Telekinetic Push

Actions


Set TelePushCaster = (Casting unit)


Set TelePushCasterPosition = (Position of TelePushCaster)


Set TelePushUnitsAffected = (Units within 700.00 of TelePushCasterPosition matching ((Owner of (Matching unit)) Not equal to (Owner of TelePushCaster)))


For each (Integer A) from 1 to 20, do (Actions)



Loop - Actions




Set TelePushStoreDistance = (TelePushStoreDistance - 35.00)




Unit Group - Pick every unit in TelePushUnitsAffected and do (Actions)





Loop - Actions






Unit - Move (Picked unit) instantly to (TelePushCasterPosition offset by TelePushStoreDistance towards 0.00 degrees)






Destructible - Pick every destructible within 100.00 of (Position of (Picked unit)) and do (Destructible - Kill (Picked destructible))






Custom script: call RemoveLocation (udg_TelePushCasterPosition)




Game - Display to (All players) the text: (String(TelePushStoreDistance))




Wait 0.01 game-time seconds


Set TelePushStoreDistance = 0.00
TelePush

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Telekinetic Push

Actions


Set TelePushCaster = (Casting unit)


Set TelePushCasterPosition = (Position of TelePushCaster)


Set TelePushStoreDistance = 100?????


Set TelePushUnitsAffected = (Units within 700.00 of TelePushCasterPosition matching ((Owner of (Matching unit)) Not equal to (Owner of TelePushCaster)))


For each (Integer A) from 1 to 20, do (Actions)



Loop - Actions




Set TelePushStoreDistance = (TelePushStoreDistance - 35.00)




Unit Group - Pick every unit in TelePushUnitsAffected and do (Actions)





Loop - Actions






Set TempLocation = (TelePushCasterPosition offset by TelePushStoreDistance towards 0.00 degrees)






Unit - Move (Picked unit) instantly to TempLocation






Destructible - Pick every destructible within 100.00 of TempLocation and do (Destructible - Kill (Picked destructible))






Custom script: call RemoveLocation(udg_TempLocation)




Game - Display to (All players) the text: (String(TelePushStoreDistance))




Wait 0.01 game-time seconds


Custom script: call RemoveLocation(udg_TelePushCasterPosition)


Set TelePushStoreDistance = 0.00
Actually is...Wait 0.01 game-time seconds
