Dimension Tags
Dimension Tags
[dimension]
Add a bot to a dimension.
Example: Set
#room1
totrue
for the bot to appear in a dimension namedroom1
.
Possible values are:
Value | Description |
---|---|
false | Removes the bot from the dimension. (default) |
true | Puts the bot into the dimension. |
[dimension]SortOrder
The order that the bot should be in a stack of bots.
When bots are stacked, they are placed from the bottom to the top based on the sort order. So a bot with a sort order of 1 is going to be placed on top of a bot with a sort order of 2.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the sort order of a bot in a stack of bots. (Default is 0) |
[dimension]Position
The vector position of a bot on the grid in the specified dimension.
Must be a vector type. If not specified or the value is not a vector, then #[dimension]X
, #[dimension]Y
, and #[dimension]Z
will be used.
Integer values are mapped directly to the grid. e.g. 1.5 means halfway between the 1 and 2 grid squares.
Possible values are:
Value | Description |
---|---|
➡️0,0,0 | The bot will be placed in the center of the grid. (Default) |
Any Vector | Specifies the X, Y, and Z position of a bot in a dimension. |
Examples
tags.homePosition = new Vector3(1, 2, 3);
const homePosition = getBotPosition(thisBot, 'home');
os.toast('home Position: ' + homePosition);
[dimension]X
The X (east-west) position of a bot on the grid in the specified dimension.
Integer values are mapped directly to the grid. e.g. 1.5 means halfway between the 1 and 2 grid squares.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the X position of a bot in a dimension. (Default is 0) |
[dimension]Y
The Y (north-south) position of a bot on the grid in the specified dimension.
Integer values are mapped directly to the grid. e.g. 1.5 means halfway between the 1 and 2 grid squares.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the Y position of a bot in a dimension. (Default is 0) |
[dimension]Z
The Z (up-down) offset that the bot is offset above/below the grid.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the Z position of a bot in a dimension. (Default is 0) |
[dimension]Rotation
The rotation in that the bot should be oriented by in the specified dimension.
Must be a rotation type. If not specified or the value is not a rotation, then #[dimension]RotationX
, #[dimension]RotationY
, and #[dimension]RotationZ
will be used.
Possible values are:
Value | Description |
---|---|
🔁0,0,0,1 | The bot will be placed flat on the grid. (Default) |
Any Rotation | Specifies the rotation of a bot in a dimension. |
Examples:
tags.homeRotation = new Rotation({
axis: new Vector3(1, 0, 0),
angle: Math.PI / 2
});
const homeRotation = getBotRotation(thisBot, 'home');
os.toast('home Rotation: ' + homeRotation);
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the X rotation of a bot in a dimension. (Default is 0) |
[dimension]RotationX
The X (pitch) rotation in radians that the bot should be rotated by.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the X rotation of a bot in a dimension. (Default is 0) |
[dimension]RotationY
The Y (roll) rotation in radians that the bot should be rotated by.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the Y rotation of a bot in a dimension. (Default is 0) |
[dimension]RotationZ
The Z (yaw) rotation in radians that the bot should be rotated by.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the Z rotation of a bot in a dimension. (Default is 0) |
[dimension]Start
The start value for bots that are in the multi-line editor (tag portal/sheet portal).
For cursor
bots, this value indicates the character index that selection starts at.
For codeButton
bots, this value indicates the line number that the button should appear above.
For codeHint
bots, this value can indicate the character index that the hint starts at. Alternatively, it can indicate the line and column numbers that the hint starts at.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the value at which the bot starts in the dimension. (Default is 0) |
Any Vector | Specifies the line (x component) and column (y component) that the hint starts at. Only applicable to codeHint bots. |
[dimension]End
The end value for bots that are in the multi-line editor (tag portal/sheet portal).
For cursor
bots, this value indicates the character index that the selection stops at.
The codeButton
bots, this value indicates the priority for the button. Priority determines the order that buttons on the same line are shown in. (Higher numbers means lower priority)
For codeHint
bots, this value can indicate the character index that the hint end at. Alternatively, it can indicate the line and column numbers that the hint end at.
Possible values are:
Value | Description |
---|---|
Any Number | Specifies the index at which the bot ends in the dimension. (Default is 0) |
Any Vector | Specifies the line (x component) and column (y component) that the hint ends at. Only applicable to codeHint bots. |