In AI Controllers, Claim Task Resource and Uncleaim Task Resource can be used to lock and unlock GameplayTaskResources. The two defaults work like this:

  • Claiming logic pauses behavior tree
  • Claiming movement prevents moving, but has some gotchas: At least the behavior tree MoveTo node will not be affected by this unless “Enable BTAITasks” is set in project settings (at least in 4.26). This seems to be because unless this is set, the MoveTo node does not use Gameplay Tasks.