| 06-24-2007, 02:58 AM | #1 |
So, in the JassHelper Tutorial, section "Functions As Objects". I don't quite understand the following line at the end of the section: "Note: This feature is currently limited to functions declared in the map script, you cannot use it with common.j natives or blizzard.j functions yet." Could someone explain this to me? I've tried a function.execute() and I didn't delcare that function in the map script(header). It worked fine or at least it appeared to work fine... Here's the link to JassHelper http://www.wc3campaigns.net/vexorian...permanual.html Thanx |
| 06-24-2007, 03:10 AM | #2 |
Its saying that u cant do something like GetEnumUnit.execute() u would have to create a function like JASS:function get takes nothing returns unit return GetEnumUnit() endfunction function bla takes nothing returns nothing local unit a set a = get.execute() call RemoveUnit(a) endfunction |
| 06-24-2007, 03:16 AM | #3 |
I see. Thanx! |
