@temporary-escape/mod-sdk / CommandCallback
Type Alias: CommandCallback
ts
type CommandCallback = (playerId: u64, shipId: u64, entityId: EntityId, args: string[]) => string;Defined in: commands.ts:10
A console command callback. shipId is zero when the invoking player is not controlling a ship, and entityId is NullEntity when there is no controllable scene entity. The returned string is the complete console output; return an empty string for no output.
Parameters
| Parameter | Type |
|---|---|
playerId | u64 |
shipId | u64 |
entityId | EntityId |
args | string[] |
Returns
string
