- Joined
- Nov 27, 2007
- Messages
- 85
Is it possible to overload functions in jass?
This would be extremely useful for large maps, like mine...
Simple example:
If this isn't possible in vJass, can it be implemented with other tools, like cJass?
This would be extremely useful for large maps, like mine...
Simple example:
JASS:
// display text to all players
function echo takes string s returns nothing
call DisplayTextToForce(GetPlayersAll(), s)
endfunction
// function with the same name, but uses only one player
function echo takes player p, string s returns nothing
call DisplayTextToPlayer(p,0,0,s)
endfunction
If this isn't possible in vJass, can it be implemented with other tools, like cJass?