Adding cities and units with Lua

Gangor

King
Joined
Jan 21, 2002
Messages
825
Location
Berks, UK
I can't find any functions which do this. Am I missing something? Do I have to add them somehow with SQL? Where do I do that? :confused:
 
Do you mean adding a new unit type or a new unit instance? The former has to be done using XML or SQL, the latter uses the Player:InitUnit() and Player:InitCity() functions
 
Back
Top Bottom