Invoke script when objective is complete.
This commit is contained in:
parent
999c0eedb3
commit
28b830a197
|
@ -102,6 +102,8 @@ void updateObjective(char *name, int type)
|
|||
o->status = OS_COMPLETE;
|
||||
addHudMessage(colors.green, "%s - Objective Complete!", o->description);
|
||||
|
||||
runScriptFunction(o->description);
|
||||
|
||||
runScriptFunction("OBJECTIVES_COMPLETE %d", battle.numObjectivesComplete + 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue