|
[codes=jass]function test takes nothing returns nothing
local 该函数暂时没有解释unit u===原型==
constant native GetTriggerUnit takes nothing returns unit
==类型==
constant native function
==返回值==
unit(单位)
==函数类别==
Trigger Unit Based Event(单位触发器)
说明:返回触发单位,正常在触发器的事件是玩家单位事件,可以使用。GetTriggerUnit()
local 该函数暂时没有解释effect f=在单位的身上创建特殊效果AddSpecialEffectTarget("Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl",u,"chest")
call DestroyEffectAfter.execute(f,3.0)
set u=null
set f=null
endfunction
function DestroyEffectAfter takes 该函数暂时没有解释effect fx, 该函数暂时没有解释real t returns nothing
call ==原型==native TriggerSleepAction takes real timeout returns nothing==类型==native function==返回值==nothing==函数类别==Trigger Unit Based Event(单位触发器)==等待一段时间
TriggerSleepAction(t)
call ==原型==
native DestroyEffect takes effect whichEffect returns nothing
==类型==
native function
==返回值==
nothing
==函数类别==
Effects(特效)DestroyEffect(fx)
endfunction[/codes] |
|