The search keyword must be a single word (no spaces).
Function QueuedTriggerAddBJ
- Line
- 1048
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- trigger trig, boolean checkConditions
- Returns
- boolean
| 1048 | function QueuedTriggerAddBJ takes trigger trig, boolean checkConditions returns boolean |
| 1049 | // Make sure our queue isn't full. If it is, return failure.
|
| 1050 | if (bj_queuedExecTotal >= bj_MAX_QUEUED_TRIGGERS) then |
| 1051 | return false |
| 1052 | endif
|
| 1053 | |
| 1054 | // Add the trigger to an array of to-be-executed triggers.
|
| 1055 | set bj_queuedExecTriggers[bj_queuedExecTotal] = trig |
| 1056 | set bj_queuedExecUseConds[bj_queuedExecTotal] = checkConditions |
| 1057 | set bj_queuedExecTotal = bj_queuedExecTotal + 1 |
| 1058 | |
| 1059 | // If this is the only trigger in the queue, run it.
|
| 1060 | if (bj_queuedExecTotal == 1) then |
| 1061 | call QueuedTriggerAttemptExec() |
| 1062 | endif
|
| 1063 | return true |
| 1064 | endfunction
|