/Engine/Source/Runtime/GameplayTasks/Classes/GameplayTasksComponent.h
Remove all current tasks and register the one in the passed array. It's optimal to use Add/Remove of single tasks directly if possible.
void SetSimulatedTasks ( const [TArray](API\Runtime\Core\Containers\TArray)< [UGameplayTask](API\Runtime\GameplayTasks\UGameplayTask) * > & NewSimulatedTasks )