event · events.command

Command failed

Reports a typed command after its gameplay owner rejects the fixed-tick request.

events.command.failed(request_sequence, command_id, origin_id, target_tick, error_id, detail)
Stable ID
events.command.failed
Owner
app.script-event-service
Authority
read_only
Timing
post_commit
Availability
active-session
Side effects
none
Determinism
ordered by event publication sequence and committed tick
Introduced
1.3.0

Usage

Listen for fixed-tick command requests that reached their gameplay owner but were rejected. Display detail to the player and use error_id for stable recovery logic.

Parameters

Returns

An immutable event published after the gameplay owner rejects the request without mutation.

Cost

One bounded retained event and one callback delivery per subscribed package.

Fields

IDTypeUnitsRequiredDescription
command_idstringnoneyesStable command symbol ID.
detailstringnoneyesPlayer-readable owner rejection detail.
error_idstringnoneyesStable rejection reason ID.
origin_idstringnoneyesEngine-created caller origin ID.
request_sequenceunsigned-integernoneyesRejected command request sequence.
target_tickticksimulation-ticksyesRequested fixed simulation tick.

Errors

Examples

local subscription = events.listen("events.command.failed", function(event)
    ui.text("Command", event.payload.detail)
end)

API history

Related symbols

Project references