Hey guys, I'm trying to use a trigger variable and running into some problems.
The script goes something like this:
It errors when TriggerExecute() attempts to run. It gives the error that "killUnits" does not exist. Any help on how to call functions like this and have the correct variables?
All help appreciated!
The script goes something like this:
Code:
//globals
Trigger[999] test;
//end globals
void killUnits(unit u, unit u2)
{
UnitKill(u);
}
void Test(unit u, unit u2)
{
TriggerExecute(test[1],false,false);
}
void Init()
{
unit u = CreateUnit();
unit u2 = CreateUnit();
test[1] = CreateTrigger("killUnits");
}
It errors when TriggerExecute() attempts to run. It gives the error that "killUnits" does not exist. Any help on how to call functions like this and have the correct variables?
All help appreciated!
Last edited by a moderator: