1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Need help with CyUnit.doCommand

Discussion in 'Civ4 - Creation & Customization' started by snarko, Nov 21, 2005.

  1. snarko

    snarko DLLer

    Joined:
    Dec 9, 2003
    Messages:
    1,512
    Location:
    Sweden
    I can't figure out how to use it. I thought it would be doCommand(int, int, int) but that doesn't work. Unlike most others that takes *type as an argument doCommand (and canDoCommand) takes an actual CommandType as argument... but what's an actual CommandType and how do I get it?
     
  2. Rayanth

    Rayanth Prince

    Joined:
    Sep 16, 2005
    Messages:
    303
    CommandTypes:

    -1 = NO_COMMAND
    0 = COMMAND_PROMOTION
    1 = COMMAND_UPGRADE
    2 = COMMAND_AUTOMATE
    3 = COMMAND_WAKE
    4 = COMMAND_CANCEL
    5 = COMMAND_CANCEL_ALL
    6 = COMMAND_STOP_AUTOMATION
    7 = COMMAND_DELETE
    8 = COMMAND_GIFT
    9 = COMMAND_LOAD
    10 = COMMAND_UNLOAD
    11 = COMMAND_UNLOAD_ALL
    12 = COMMAND_HOTKEY
    13 = NUM_COMMAND_TYPES


    Maybe?
     
  3. snarko

    snarko DLLer

    Joined:
    Dec 9, 2003
    Messages:
    1,512
    Location:
    Sweden
    Maybe what? Those numbers doesn't work. Neither does using strings.
     

Share This Page