|
[codes=jass]function emoqiyanaction takes unit U0 player p returns nothing
local location dian
local unit U1
call PolledWait( 5.00 )
set dian = GetUnitLoc(U0)
set U1 = CreateUnitAtLoc( p, 'e008', dian,0)
call SetUnitAbilityLevelSwapped( 'A02T', U1, GetUnitAbilityLevel(U0,'A02Z' ))
call IssueImmediateOrder( U1, "thunderclap" )
endfunction[/codes]
初学JASS好多地方都不懂,这个是我第一次尝试,可惜是错的。可能错的很简单,但是我看不出来 |
|