# Current Trigger Thread SetFlags
Flags —
Native
|Action
This is only used to set flags on the current galaxy thread so that the internal execution can know what type of thread is being executed.
# Arguments
int
<preset::ThreadFlags> — Flagsbool
— On
Returns — void
native void TriggerCurrentTriggerThreadSetFlags(
int f,
bool on,
);
# 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/heroesdata.stormmod — base.stormdata/TriggerLibs/AILib.galaxy:3015
}
TriggerCurrentTriggerThreadSetFlags(c_triggerThreadFlagAI, true);
while ((libGame_gv_gameOver == false)) {
libAIAI_gf_HeroAIChooseTalents(libGame_ge_Faction_Order);
mods/warcoop/warmeleeai.sc2mod — base.sc2data/TriggerLibs/Orc/Orc.galaxy:604
bool BOThreadOrc(bool c, bool a){
int player=GAw3_BOPlayer;
TriggerCurrentTriggerThreadSetFlags(c_triggerThreadFlagAI, true);
while(PlayerStatus(player)==c_playerStatusActive){
AIClearStock(player);