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

utils.makeUnit

Discussion in 'Rhye's and Fall Modmods' started by Linkman226, Apr 2, 2011.

  1. Linkman226

    Linkman226 #anarchy

    Joined:
    Sep 14, 2007
    Messages:
    2,493
    What are the arguments that need to be incldued in utils.makeUnit? Specifically the last one? For example, if we're looking at this:

    Code:
    utils.makeUnit(con.iMongolKeshik, iMongolia, (city.getX(), city.getY()), 2)
    What is the 2 for?
     
  2. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,043
    Gender:
    Male
    Location:
    Leblanc
    Why don't you just look at the signature in RFCUtils.py? It's pretty self-explanatory.

    In this case it's UnitType ID, Player ID, target plut coordinates and number of units to be created.
     
  3. Linkman226

    Linkman226 #anarchy

    Joined:
    Sep 14, 2007
    Messages:
    2,493
    I was asking because I'm getting some weird bugs with that. I see now that they have nothing to do with that.

    Back to the drawing board...
     

Share This Page