• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Function declaration problem?

Status
Not open for further replies.
Level 4
Joined
Jul 1, 2008
Messages
46
function A takes nothing returns nothing
call B()
endfunction

function B takes nothing returns nothing
call A()
endfunction


how would you do this in normal world editor/jass. Is it possible? I assume a function has to be defined before I can call it but what about in the above case where you need a function prototype, can regular JASS handle this?

thanks!
 
Level 3
Joined
Aug 9, 2008
Messages
60
It's possible, you have to use the function which takes string for the function name instead of a code.
 
Status
Not open for further replies.
Top