# Destroy Trigger
Grammar — Destory t
Flags —Native
|Action
# Arguments
trigger
— Trigger
Returns — void
native void TriggerDestroy(trigger t);
# Related
Category: Trigger / Basic
- Create Trigger From Trigger
- New Trigger —
trigger
— TriggerCreate - Run Trigger —
void
— TriggerExecute - Run Trigger By Name —
void
— libNtve_gf_TriggerExecuteByName - Stop Trigger —
void
— TriggerStop - Destroy Trigger —
void
— TriggerDestroy - Turn Trigger On/Off —
void
— TriggerEnable - Trigger Is On —
bool
— TriggerIsEnabled - Current Trigger —
trigger
— TriggerGetCurrent - Wait For Trigger —
void
— TriggerWaitForTrigger - Current Trigger Thread SetFlags —
void
— TriggerCurrentTriggerThreadSetFlags - Allow Trigger To Be Skipped —
void
— TriggerSkippableBegin - Player Skips Trigger —
void
— TriggerAddEventTriggerSkipped - Register Events — macro
- Send Generic Event —
void
— TriggerSendEvent - Generic Event —
void
— TriggerAddEventGeneric - Generic Event Parameter —
string
— TriggerEventParamName - Triggering Event Name —
string
— EventGenericName - Triggering Trigger —
trigger
— EventTrigger - Trigger Active Count —
int
— TriggerActiveCount - Trigger Execution Count —
int
— TriggerGetExecCount - Trigger Evaluation Count —
int
— TriggerGetEvalCount - Trigger Function Name —
string
— TriggerGetFunction - Evaluate Trigger Conditions —
bool
— TriggerEvaluate
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4590
// Implementation
TriggerExecute(lv_trigger, lp_check, lp_wait);
TriggerDestroy(lv_trigger);
}
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:776
libHZAR_gv_heroZaryaEnergyTogetherWeAreStrongShieldedAllyUnitCount[lv_localShieldedPlayer] -= 1;
if ((libHZAR_gv_heroZaryaEnergyTogetherWeAreStrongShieldedAllyUnitCount[lv_localShieldedPlayer] <= 0)) {
TriggerDestroy(libHZAR_gv_heroZaryaEnergyTogetherWeAreStrongShieldedAllyTrigger[lv_localShieldedPlayer]);
libHZAR_gv_heroZaryaEnergyTogetherWeAreStrongShieldedAllyTrigger[lv_localShieldedPlayer] = null;
}
mods/warcoop/warmeleeai.sc2mod — base.sc2data/LibW3AI.galaxy:177
Wait(30.0, c_timeGame);
DialogDestroy(lv_d);
TriggerDestroy(libW3AI_gt_Over);
return true;
}