Ghost Commands
  • Getting Started
    • Quickstart
    • Syntax
      • Command syntax
      • Arguments with multiple values
    • Custom commands
  • Documentation
    • Commands
      • Static commands
      • Non-static commands
      • Dynamic commands
      • Overloads
      • Parameters
      • Additional attributes
    • Suggestions
      • Suggestion attributes
      • Suggestor methods
    • Converters
      • Custom parameter types
      • Using the ArgumentReader
      • Multiple ways to interpret an argument
    • Processors
      • Creating a processor
      • Setting priorities
      • Cheat codes example
    • Macros
    • Settings
    • Customization
    • Included Commands
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Syntax

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.

PreviousCommand syntaxNextCustom commands

Last updated 7 months ago

Was this helpful?