06-21-2014, 09:11 PM
So why is it in the example section?
Quote: * Commonly used examples:
*
* 1. Assign a task as current task:
* ["taskDestroy", "assigned"] call FHQ_TTI_setTaskState;
*
*
* 2. Check if a task is completed (Note, might be successful, failed or cancelled)
* if (["taskInsert"] call FHQ_TTI_isTaskCompleted) then {hint "yes";};
*
*
* 3. Check if a task is successful
* if (["taskDestroy"] call FHQ_TTI_isTaskSuccessful) then {hint "yay";};
*
*
* 4. Mark a task and select another task that is not completed yet.
* ["taskDestroySecondary", "succeeded", "taskDestroyPrimary", "taskDestroySecondary", "taskExfiltrate"]
* call FHQ_TTI_markTaskAndNext;