Table 5. Scene 1 output log with GOAP implementation.

Log
1 Goal : Patrol
2 isDefensible : true
3 Goal : enemiesCount==0
4 Plan : Take Gun, Target Enemy, Fire
5 Act : Take Gun
6 isDefensible : false
7 Goal : isAlerting==true
8 Plan : Find Alert, Move, Sound Alert
9 Act : Find Alert
10 Act : Move
11 Act : Sound Alert