Function QueuedTriggerAttemptExec
| 1029 | function QueuedTriggerAttemptExec takes nothing returns boolean |
| 1030 | loop
|
| 1031 | exitwhen bj_queuedExecTotal == 0 |
| 1032 | |
| 1033 | if TriggerExecuteBJ(bj_queuedExecTriggers[0], bj_queuedExecUseConds[0]) then |
| 1034 | // Timeout the queue if it sits at the front of the queue for too long.
|
| 1035 | call TimerStart(bj_queuedExecTimeoutTimer, bj_QUEUED_TRIGGER_TIMEOUT, false, null) |
| 1036 | return true |
| 1037 | endif
|
| 1038 | |
| 1039 | call QueuedTriggerRemoveByIndex(0) |
| 1040 | endloop
|
| 1041 | return false |
| 1042 | endfunction
|