CustomCommand - v1.0.1
    Preparing search index...

    Function RegisterEnum

    • register custom enum for custom command parameters and the name need tb be the same

      Parameters

      • name: string

        the name of this enum, you need to add namespace to this to work

      • value: string[]

        the enum you waht to add

      Returns void

      // cc is CMD
      RegisterEnum("mc:dimension", [ "overworld", "nether", "the_end" ])

      // namespace and name need to be the same for it to work
      cc.addEnumType("mc:dimension",true)
      // the return of this on function is type string