equal
deleted
inserted
replaced
218 AddEvent(condFunc2, condArgs1, doFunc, doArgs) |
218 AddEvent(condFunc2, condArgs1, doFunc, doArgs) |
219 AddEvent(condFunc2, condArgs2, doFunc, doArgs) |
219 AddEvent(condFunc2, condArgs2, doFunc, doArgs) |
220 RemoveEventFunc(condFunc1) --Removes all three events that have condFunc1 |
220 RemoveEventFunc(condFunc1) --Removes all three events that have condFunc1 |
221 RemoveEventFunc(condFunc2, condArgs1) --Removes a single event</code> |
221 RemoveEventFunc(condFunc2, condArgs1) --Removes a single event</code> |
222 |
222 |
223 === `CheckEvents` === |
223 === `CheckEvents()` === |
224 Verifies all the condition functions in the events list and calls the respective ‘action’ functions if the conditions are met. If the `evType` of a completed event equals `0` then it is removed from the list. This function is best placed in `onGameTick`. |
224 Verifies all the condition functions in the events list and calls the respective ‘action’ functions if the conditions are met. If the `evType` of a completed event equals `0` then it is removed from the list. This function is best placed in `onGameTick`. |
225 |
225 |
226 == Misc. == |
226 == Misc. == |
227 |
227 |
228 === `StoppedGear(gear)` === |
228 === `StoppedGear(gear)` === |