|
楼主 |
发表于 2007-12-23 20:45:14
|
显示全部楼层
我想仿真速度上千的移动单位,让有热血灵光的部队都能跑的飞快,我先把条件简化了,如果只用瞬间移动会造成和路径差很多
结果可以跑的快可是他停不下来,在原地打转。
FlyRunPositionFuture=用鼠标右键点的地板
FlyRunPositionNow=现在的位置
FlyRunPositionAngle=部队面对的方向
FlyRun
事件-A Unit 已经下达了瞄准一个定点的命令
状况-((Triggering unit) has buff 热血灵光) 等于 真
行动-Set FlyRunPositionFuture = (Target point of issued order)
Set FlyRunCaster = (Triggering unit)
Turn off (This trigger)
Turn on FlyRunEffect <情报>
FlyRunEffect
事件-Every 0.00 seconds of game time
状况-
行动-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
如果条件
(Min X of (Region centered at (Position of FlyRunCaster) with size
(200.00, 200.00))) 等于 (X of (FlyRunPositionFuture offset by (0.00,
0.00)))
(Min Y of (Region centered at (Position of FlyRunCaster) with size
(200.00, 200.00))) 等于 (Y of (FlyRunPositionFuture offset by (0.00,
0.00)))
就行动
Turn off (This trigger)
Turn on FlyRun <情报>
否则行动
Set FlyRunPositionNow = (Position of FlyRunCaster)
Set FlyRunPositionAngle = (Facing of FlyRunCaster)
Move FlyRunCaster instantly to (FlyRunPositionNow offset by 128.00
towards FlyRunPositionAngle degrees),facing FlyRunPositionAngle degrees
Turn off (This trigger)
Order FlyRunCaster to 右点 FlyRunPositionFuture
Wait 0.15 game-time seconds
Turn on (This trigger)
有人知道吗?
我用自学wiki改的,因为第一次接触触发,弄到早上还是不行。 只有魔将有热血灵光
http://uptovip.myweb.hinet.net/Basic.w3x |
|