Game Development Reference
In-Depth Information
Controlling AI with triggers
Chapter 5 , Artificial Intelligence , deals with several methods to control AI in games. As we
learned in that chapter, control and predictability are very important. Even if we have the
smartest AI in the world, as programmers, we want to be able to know that the AI will per-
form a certain action at a certain time. This is where triggers can be extremely useful. In
fact, with a good trigger system there might not be need for much AI at all.
One example of trigger usage might be a warehouse where guards are in a patrolling state.
Once the player reaches a certain area (maybe where they should not go), an alarm is
triggered. At this point, we also want the guards to switch to a more aggressive state.
Search WWH ::




Custom Search