Passage: Initially, the player's weapon is a semi-automatic pistol. As the game progresses, other weapons become accessible, including melee and hand-thrown weapons. Some weapons can be dual wielded. Max regains health by taking painkillers, which can be found throughout the levels. The game's AI is dependent on pre-scripted commands: most of the behavior exhibited by enemies (such as taking cover, retreating from the player, or throwing grenades) is pre-scripted.

Question: What type of actions control how the AI works?
pre-scripted commands