Invoke script when objective is complete.

This commit is contained in:
Steve 2015-11-30 12:41:27 +00:00
parent 999c0eedb3
commit 28b830a197
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}