# Source URL: https://dev.epicgames.com/documentation/fortnite/verse-starter-01-creating-the-npc-behavior-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/fortnite/verse-starter-01-creating-the-npc-behavior-in-unreal-editor-for-fortnite.md
# Section: Running the Character Game Loop
# Race between resetting the character to start of the board and awaiting commands for that character.
CharacterCommandLoop()<suspends>:void=
race:
AwaitReset()
loop:
AwaitCommands()
Verse Library
verse
09 Running The Character Game Loop
Defines a suspending loop that concurrently waits for reset states and new commands for NPC behavior.
extracted-snippets/documentation/fortnite/verse-starter-01-creating-the-npc-behavior-in-unreal-editor-for-fortnite/09-running-the-character-game-loop.verse