HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

EnumDestructablesInCircleBJ

02-21-2006, 08:25 PM#1
emjlr3
is it possible to do something like

Collapse JASS:
function Blunt_Des_Damage takes unit cast, unit targ returns nothing

endfunction

function B_Knockback takes nothing returns nothing
    local unit cast = blah
    local unit targ = blah
    local location m = blah
    call EnumDestructablesInCircleBJ(125.,m,function Blunt_Des_Damage(cast,targ))
endfunction

i dont know whats wrong, but its giving me an error with the call EnumDes.

what do I need to change?
02-21-2006, 08:37 PM#2
Vexorian
for some lame reasons , it isn't.

functions to be used as code values must not have arguments. Work arounds involve using globals
02-21-2006, 09:41 PM#3
emjlr3
yea that is what I was using, globals, but I thought this may be possible, to bad it isnt, come to think of it, I guess if this were possible, it would remove the need for Handle Vars wouldnt it?