HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Passing functions with JASS

08-06-2002, 11:47 PM#1
Guest
Does anyone know if you can pass functions that take parameters to other functions? for example,

call ForGroup( <units to select>, function FuncFoo )

(the pick all units in group and do action action)

Now my function FuncFoo takes a parameter, so i was wondering if its possible to specify parameters, or do i have to use a global?

function FuncFoo takes rect theRect returns nothing
// stuff
endfunction

i tried this, and it didnt work
call ForGroup( <units to select>, function FuncFoo(Rectangle) )