# Current Trigger Thread SetFlags

FlagsNative | 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

Returns — void

native void TriggerCurrentTriggerThreadSetFlags(
	int f,
	bool on,
);

Category: Trigger / Basic

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/AILib.galaxy:3015

    }

    TriggerCurrentTriggerThreadSetFlags(c_triggerThreadFlagAI, true);
    while ((libGame_gv_gameOver == false)) {
        libAIAI_gf_HeroAIChooseTalents(libGame_ge_Faction_Order);

mods/warcoop/warmeleeai.sc2modbase.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);