找回密码
 点一下
查看: 1711|回复: 1

[已解决]call DestroyEffectAfter.execute(f,3.0)这是函数为什么要加.execute?

[复制链接]
发表于 2008-11-14 21:24:28 | 显示全部楼层 |阅读模式
[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]
发表于 2008-11-14 22:07:24 | 显示全部楼层
vj.......

加.execute就是相当于Call Executefunc(),只不过可以传递引数。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-2 20:35 , Processed in 0.080972 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表