- Joined
- Nov 4, 2007
- Messages
- 933
I've been learning and trying to create custom functions so that I could call them like you could any action, the function and the parameters created were correct with no errors and placed in the trigger 'myfunc', however when I attempt to use that function from a different trigger via "call Meteor(etc, etc, etc)" the built in sntax checker of wc3 says that it "Expected a function name". My trigger that holds the function is basically this:
function Meteor takes real x, real y, unit u returns nothing
...(actions)
endfunction
//===========================================================================
function InitTrig_myfunc takes nothing returns nothing
endfunction
Is there something I need to do to make the function able to be called in different triggers?
function Meteor takes real x, real y, unit u returns nothing
...(actions)
endfunction
//===========================================================================
function InitTrig_myfunc takes nothing returns nothing
endfunction
Is there something I need to do to make the function able to be called in different triggers?