Events
Time - Every 0.05 seconds of game time
Conditions
Actions
-------- 计次变数加一 --------
Set index = (index + 1)
-------- 以下移动目标 --------
-------- 先尝试移动目标,如果遇到障碍物,目标移动後的点(P3)会和想移动的点(P2)距离过远 --------
-------- P1=原位置 --------
-------- P2=预定移动位置 --------
-------- P3=移动後的位置 --------
Set P1 = (Position of target)
Set P2 = (P1 offset by 50.00 towards angle degrees)
Unit - Move target instantly to P2, facing (Facing of target) degrees
Set P3 = (Position of target)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between P2 and P3) Less than 5.00
Then - Actions
Else - Actions
-------- 目标移动後的点(P3)会和想移动的点(P2)距离过远,表示遇到障碍物。此时移回单位并关闭触发 --------
Unit - Move target instantly to P1
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
index Greater than or equal to 20
Then - Actions
-------- 计次器大於一定值,表示已经被击退够远了,关闭触发(停止击退效果) --------
Trigger - Turn off (This trigger)
Else - Actions