2 Questions:
1. What's the Lua command to make an unit sleep? I get that unitoCommand can be used, but in CommandTypes there's only a command for wake, not for sleeping! I thought maybe it's interchangeable, but I tried it out; it didn't make the unit sleep.
2. Is there a way to make the player only able to build 1 unit of a particular unique unit? Much like missionaries in civ 4, where you can only build 3.
1. What's the Lua command to make an unit sleep? I get that unitoCommand can be used, but in CommandTypes there's only a command for wake, not for sleeping! I thought maybe it's interchangeable, but I tried it out; it didn't make the unit sleep.
Code:
unit:DoCommand(CommandType.COMMAND_WAKE);
2. Is there a way to make the player only able to build 1 unit of a particular unique unit? Much like missionaries in civ 4, where you can only build 3.