Something went wrong. Try again.
An implementation of a "utility AI" system, using weights to tell AI which tasks to do instead of a traditional behavior tree.
Something went wrong. Try again.
12345678910111213141516171819#include "BlackboardConsideration.h"#include "BehaviorTree/BlackboardComponent.h"
UBlackboardConsideration::UBlackboardConsideration(){ Description = "A consideration based on a Blackboard value.";}
float UBlackboardConsideration::Score_Implementation(const FDecisionContext& Context) const{ if (Context.AIBlackboard != NULL) { return Context.AIBlackboard->GetValueAsFloat(BlackboardKey.SelectedKeyName); } else { return 0.0f; }}