# Command Error

Grammar — Player player hit command error error|Command Error using ability ability|Ability Command
FlagsNative | Event

Event that occurs when a player recieves a command error.

# Arguments

  • int — Player
  • int [ preset::CommandResult ] — Error
  • abilcmd — Ability

Returns — void

native void TriggerAddEventCommandError(
	trigger t,
	int player,
	int error,
	abilcmd inAbilCmd,
);

Category: UI / Command Error

# Examples

# campaigns/void.sc2campaign

MapScript.galaxy

// L3316
TriggerAddEventCommandError(gt_SupplyHelperActivator, gv_p01_USER, c_cmdNotEnoughFood, null)
// L3316
TriggerAddEventCommandError(gt_SupplyHelperActivator, gv_p01_USER, c_cmdNotEnoughFood, null)