Here are some cool examples from Red Riot.
You can command an AI to do almost anything. Its just a question of the right command, and or script, and the proper set up of AI volumes and AI Nodes.
Perhap you have a sniper in a guard tower and he is targeting an enemy in the distance(not necessarily the player). But now suddenly there is a closer threat(the player). By default the AI will pick the nearest enemy AI within it's field of view unless its already engaged with a target. This target will remain until either the target is dead or the AI receives damange from another target or it receives another target message.But if this closer target (the player), simply walks by the AI he would be ignored, and the player will think thats a pretty stupid piece of AI coding.
Well there is a way to get the AI to target the closer enemy (player).
msg sniper27 ResetSense
This will cause the AIsniper in the guard tower to loose the distant target, and return to searching for new targets to acquire, and it will acquire the closer target (the player) if he sees him. A great potential stealth scenario, and apparently alot smarter. Of course the message would need to be triggered, perhaps with a player trigger as he gets within range or too close, or near a door, or a death message, or a weapons pickup.
You can easily teleport a Player across a map by using this simple command.
msg player (teleport teleportpoint)
or
msg player (teleportnr teleportpoint)
There is a difference between the two commands, teleportnr , (the nr is synonomous to no rotation) is a teleport with no rotation change, whereas teleport rotates the player to face the direction of the teleportpoint object as set in the properties rotation.
The destination point must be a teleport object. Thats just a requirement of the code. The teleport command can also works for character AI. You can quickly change the direction of an attack that way.