|
发表于 2010-9-1 15:13:05
|
显示全部楼层
那样第一下就没了。
这个至少我用着都符合要求了
楼主要有兴趣自己试一下吧。
[trigger]
op
Events
Unit - A unit Is attacked
Conditions
(Level of 1111111 for (Attacked unit)) Greater than 0
Actions
Set er = (Attacking unit)
Set ed = (Attacked unit)
If ((Cos(((Facing of er) - (Facing of ed)))) Greater than 0.00) then do (Unit - Order er to Stop) else do (Do nothing)
Wait until ((Cos(((Facing of ed) - (Facing of er)))) Greater than 0.00), checking every 0.20 seconds
If ((Cos(((Facing of er) - (Facing of ed)))) Greater than 0.00) then do (Unit - Order er to Stop) else do (Do nothing)
[/trigger] |
|