To use cheat codes in Age of Empires II, press Enter during game play to bring up a text box, enter the code and press Enter again. The codes are not case sensitive. All cheat units are spawned from the player's Town Center. Without a Town Center, no cheat units will appear even if the correct codes are typed.