- Joined
- Sep 5, 2007
- Messages
- 264
I'm still getting a complete grasp on vJASS.
I know how to do thing the old gamecache way, but I'm creating a struct based "ability-tracker", a single timer & array that remembers all the spells that need remembering and their stats (caster,target,etc.)
My query is:
Is it possible to use
And call whatever function that var has been set to, with parameters?
IE:
I would've thought that this approach would work, but it doesn't...
I know how to do thing the old gamecache way, but I'm creating a struct based "ability-tracker", a single timer & array that remembers all the spells that need remembering and their stats (caster,target,etc.)
My query is:
Is it possible to use
JASS:
struct whatever
code ability_func
endstruct
And call whatever function that var has been set to, with parameters?
IE:
JASS:
set whatever.ability_func = function SomeFunction
call whatever.ability_func(caster, target, ability_level)
I would've thought that this approach would work, but it doesn't...