• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Dynamic calls with parameters

Status
Not open for further replies.
Ok, here's my problem:
I created a knockback system and it works very well, but I wanted to add a "dynamic" function to the onDestroy method (dunno if it's even called dynamic in this case).
I mean something like this:

JASS:
function a takes code b returns nothing
    local integer i = 5
    call b(i)
endfunction

function c takes nothing returns nothing
    call a(function b(i))
endfunction
I want to be able to call functions(with parameters) which are parameters.

Awww, I wish I could explain it in german xD I hope you understand it :)

Greets, Justify
 
Last edited:
Status
Not open for further replies.
Top