|
楼主 |
发表于 2010-1-17 22:02:57
|
显示全部楼层
再請問一下" - function Trig_YE_Func001002003 takes nothing returns boolean
- return ( IsUnitEnemy(GetFilterUnit(), Player(0)) == true )
- endfunction
- function Trig_YE_Func002A takes nothing returns nothing
- local timer t = GetExpiredTimer()
- local real x = LoadReal(HashTable(), GetHandleId(t), 0)
- local real y = LoadReal(HashTable(), GetHandleId(t), 1)
- local location array p2
- set p2[0] = udg_p1[0] //這裡應該怎樣改??
- set p2[300] = GetUnitLoc(GetEnumUnit()) //這裡應該怎樣改??
- call SetUnitPositionLoc( GetEnumUnit(), PolarProjectionBJ(p2[300], 18.00, ( AngleBetweenPoints(p2[300], p2[0]) + 180.00 )) ) //這裡應該怎樣改??
- endfunction
- function Trig_YE_Actions takes nothing returns nothing
- local group G2
- local location array p2
- set p2[0] = udg_p1[0]
- set G2 = GetUnitsInRangeOfLocMatching(498.00, p2[0], Condition(function Trig_YE_Func001002003))
- call ForGroupBJ( G2, function Trig_YE_Func002A )
- endfunction
- //===========================================================================
- function InitTrig_YE takes nothing returns nothing
- local timer t = CreateTimer()
- set gg_trg_YE = CreateTrigger( )
- call DisableTrigger( gg_trg_YE )
- call TimerStart(t,0.02,true,function Trig_YE_Actions )
- set t=null
- endfunction
复制代码 裹面的點要怎樣改? |
|