• 🏆 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!

call function instead of Run Trigger?

Status
Not open for further replies.
edit: SOLVED!
the code is
JASS:
call Minion()

Is there a way to call a function instead of waste trigger space?

I want to have several loops that reference the same function, but I just want this function to be independent - I have no need for it to be its own trigger.

I tried in the JASS...

JASS:
call function Minion

but it gives me a syntax error...

Anyone know if what I'm trying can be done?
 
Last edited:
Level 9
Joined
Nov 4, 2007
Messages
931
OK, 1st don't double post, and 2nd you can call it with the call Function_Name, the reason it may have given you syntax errors is because your minion event may have looked like: function Minion takes something returns something/nothing, you need to fill in the parameters of what Minion takes if anything at all in order for it to not error when syntax checking.
 
Status
Not open for further replies.
Top