Arguments with multiple values

Types can consist of multiple values, such as Vector3. In code we'd make a Vector3 like so: new Vector3(5, 10, 20). Whereas in the command field, we would specify a Vector3 like this: (5, 10, 20). Alternatively, you could omit the parentheses, but in doing so, you must ensure there are no empty spaces between the values.

Another more advanced example would be an array of types. Let's pretend the choose command anticipated an array of Vector3, it would look like this: choose [(0, 0, 0), (-50, -10, 12), (10, 20, 30)].

Note

Nested arrays are also supported.

Last updated