Trigger API Reference\DCEI Events\Event
void TriggerRemoveEvent(TriggerHandleBase handle)
void TriggerRemoveEvent(TriggerHandleBase handle)
Description
This API effctively destroys the trigger corresponding to the handle, thereby prevent any subsequent trigger activations.
Parameters
- TriggerHandleBase
handle
the handle corresponding to a trigger to be removed.
Example Usage
kill_trigger = false
trigger = DCEI.TriggerAddTimerEventPeriodic(
function ()
if kill_trigger then
DCEI.TriggerRemoveEvent(trigger)
end
end,
1, false, false
)