|
发表于 2008-8-28 11:11:01
|
显示全部楼层
回LZ,转成JASS完全没问题。
[codes=jass]
function Trig_a_______u_Func001Func002C takes nothing returns boolean
return true
endfunction
function Trig_a_______u_Actions takes nothing returns nothing
call GroupAddGroup( GetUnitsInRangeOfLocAll(DistanceBetweenPoints(udg_sjpd_zhongjiandian, udg_sjpd_shurudian[udg_sjpd_i[0]]), udg_sjpd_zhongjiandian), udg_sjpd_linshidanweizu[0] )
// 上下两个动作一样,但是删除上面的动作就不会提示有错误了,删除下面的却不会。
call GroupAddGroup( GetUnitsInRangeOfLocAll(DistanceBetweenPoints(udg_sjpd_zhongjiandian, udg_sjpd_shurudian[udg_sjpd_i[0]]), udg_sjpd_zhongjiandian), udg_sjpd_linshidanweizu[0] )
endfunction
//===========================================================================
function InitTrig_a_______u takes nothing returns nothing
set gg_trg_a_______u = CreateTrigger( )
call TriggerAddAction( gg_trg_a_______u, function Trig_a_______u_Actions )
endfunction
[/codes] |
|