|
发表于 2010-1-15 20:36:33
|
显示全部楼层
引用第5楼alive于2010-01-15 20:12发表的 :
and 返回的应该是boolexpr吧…… ………………
一个例子:
[jass]
function The_Condition takes nothing returns boolean
return IsUnitType( GetTriggerUnit(), UNIT_TYPE_HERO )
endfunction
function Main takes nothing returns nothing
local boolexpr cond = Condition(function The_Condition )
local boolean bool = IsUnitType( GetTriggerUnit(), UNIT_TYPE_HERO )
call DestroyBoolExpr( cond )
set cond = null
endfunction
[/jass] |
|