utils.makeUnit

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?
 
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.
 
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...
 
Back
Top Bottom