AI bots Sai-Keung Wong Chiao Tung University, Taiwan, ROC Reference: http://theblacksea.blogspot.com/2010/03/udk-bot.html
Bot Add a trigger Add a note In content browser Actor classes->note
In Kismet, Create a touch trigger event Create an actor factory Connect “trigger”::touched to “actor factory”::spawn actor Connect “note” to “Actor factory”::Spawn point
Select “actor factory” Set its properties: Controller class: UTbot Give default inventory: UTWeapon_LinkGun Pawn class: UTPawn
Save and test. Walk and touch the trigger. The bot isn’t moving.
Bot firing Now, make the bot firing
Right click at “spawned” Select Add a variable to hold the bot that just produced by the actor factory. Right click at “spawned” Select Create new object variable
Create an action for firing Right click->action->AI->firing at
Connect “actor factory”::finish to “start firing at”::in Connect the newly created variable to “start firing at”::target
Create a player variable.
Connect the variable “player” to “start firing at”::”fire at”
Save and test. Walk and touch the trigger.
Stop bot firing after 3 seconds. Create a delay Create “stop firing”. Connect them as shown below/
Save and test.
Bot moving Create “Move to actor” and connect. Assign a name to the bot: b00
Save and test.
Abort movement Create “abort move” Create a named variable Assign name: b00
Save and test. The bot stop moving after 2 seconds.
Rearrangement : using the new “named” variable.
Firing after the movement is aborted.
Save and test.