# Command Error
Grammar — Player player hit command error error|Command Error using ability ability|Ability Command
Flags —Native
|Event
Event that occurs when a player recieves a command error.
# Arguments
int
— Playerint
[ preset::CommandResult ] — Errorabilcmd
— Ability
Returns — void
native void TriggerAddEventCommandError(
trigger t,
int player,
int error,
abilcmd inAbilCmd,
);
# Related
Category: UI / Command Error
- [F] —
void
— Command Error — ( TriggerAddEventCommandError ) - [P] — Command Result
- [F] —
int
[ preset::CommandResult ] — Command Error Value — ( EventCommandErrorValue ) - [F] —
abilcmd
— Command Error Ability Command — ( EventCommandErrorAbilCmd )
# Examples
# campaigns/void.sc2campaign
// L3316
TriggerAddEventCommandError(gt_SupplyHelperActivator, gv_p01_USER, c_cmdNotEnoughFood, null)
// L3316
TriggerAddEventCommandError(gt_SupplyHelperActivator, gv_p01_USER, c_cmdNotEnoughFood, null)