# Run Trigger By Name

Grammar — Run t (check|Check/Ignore Conditions, wait|Wait/Don’t Wait until it finishes)
FlagsAction

Executes the specified trigger. If Trigger A calls “Run Trigger” to execute Trigger B, then Trigger A will not continue execution until either Trigger B returns, reaches the end of its actions, or reaches a “Wait” action. If Trigger B has a “Wait” action, and the Wait parameter of “Run Trigger” was set to Don’t Wait, then Trigger A will resume execution. If the Wait parameter was set to Wait, then Trigger A will not resume execution until Trigger B has completed or returned.

# Arguments

Returns — void

void libNtve_gf_TriggerExecuteByName(
	string lp_t,
	bool lp_check,
	bool lp_wait,
);

Category: Trigger / Basic

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L1018
libNtve_gf_TriggerExecuteByName((lv_script + "_Func"), false, true)
// L1105
libNtve_gf_TriggerExecuteByName((lv_script + "_Func"), true, true)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L380
libNtve_gf_TriggerExecuteByName(lv_functionname, false, true)