How to change Auto Success From Last Seen Location

Hello, I was wondering if there is a way to set and change the Auto Success From Last Seen Location (sight config) while the game is running.

For context, I already have the Perception system set up and is working, but I wanted to change the Auto Success From Last Seen Location based on the AI’s state. For example, if the AI is in idle state then the Auto Succuss should be -1, but if the AI engages in combat then the Auto Success should be set to 1000. I tried doing that in C++:

.h
UPROPERTY()
class UAISenseConfig_Sight* Sight;
// .cpp

/**  Constructor */
Sight = CreateDefaultSubobject<UAISenseConfig_Sight>(TEXT("Sight Config"));
Sight->DetectionByAffiliation.bDetectNeutrals = true;
AIPerception->ConfigureSense(*Sight);

// Inside its own function that takes a float paramter named AutoRange
Sight->AutoSuccessRangeFromLastSeenLocation = AutoRange;

I tried printed the values of the Auto Success From Last Seen Location which does seem to change but the perception doesn’t change, does anyone know why or knows a solution to this issue?
Screenshot 2023-07-17 154830