function · command
submit
Submits one normal command with host-created package origin.
command.submit(command_id, arguments, delay_ticks?) -> receipt
- Stable ID
command.submit- Owner
- app.ScriptPackageHost
- Authority
- request
- Timing
- fixed_tick
- Availability
- Phase 14 package callbacks
- Side effects
- submits a validated request to the existing command service
- Determinism
- Host-created package identity and per-callback budgets.
- Introduced
- 1.0.0
Usage
Submit a normal registered command. The host creates the origin and receipt; the owning game service applies valid intent at a fixed tick.
Parameters
- command_id: stable ID of a registered command.
- arguments: table matching the command descriptor fields.
- delay_ticks: optional bounded delay from the next fixed tick.
Returns
A host-created receipt with request sequence, command ID, target tick, origin, and accepted status.
Cost
Bounded by per-package command and queue limits; authoritative work occurs once through the fixed-tick owner.
Fields
This symbol has no fields.
Errors
Examples
local receipt = command.submit("command.actor.take-control", arguments, 1)
API history
- 1.0.0: Runtime contract published from the complete Phase 14 registry.