This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
component:signals [2014/07/10 16:14] vexatos |
component:signals [2014/07/10 16:15] vexatos |
||
---|---|---|---|
Line 113: | Line 113: | ||
- `carriage_moved(success: boolean[, reason:string[, x:number, y: number, z: number]])` | - `carriage_moved(success: boolean[, reason:string[, x:number, y: number, z: number]])` | ||
This signal is queued by the carriage component after a move or simulate command was issued. The `success` parameter indicates whether the move or simulation was successful, i.e. whether the carriage could be moved. If the move failed, `reason` is the error message. Depending on the error message, (`x`, `y`, `z`) is the world coordinate of the block that caused the move to fail. | This signal is queued by the carriage component after a move or simulate command was issued. The `success` parameter indicates whether the move or simulation was successful, i.e. whether the carriage could be moved. If the move failed, `reason` is the error message. Depending on the error message, (`x`, `y`, `z`) is the world coordinate of the block that caused the move to fail. | ||
+ | |||
+ | Contents | ||
+ | ----------- | ||
+ | {{page>api:contents&noheader&noeditbutton&nouser&nofooter}} |