Set slider values without triggering `OnValueChanged()`

If I remove what I suspect is the GUI update line that’s causing the linker error, I don’t see the slider GUI update, and I’m being warned not to use Value = x directly…

warning C4996: 'USlider::Value': Direct access to Value is deprecated. Please use the getter or setter. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.

My implementation:

#pragma once

#include "CoreMinimal.h"
#include "Components/Slider.h"
#include "Slider2.generated.h"

/**
 * 
 */
UCLASS()
class RTSMAPGENERATOR_API USlider2 : public USlider
{
	GENERATED_BODY()

	UFUNCTION(BlueprintCallable)
	void set_value(float in_value, bool trigger_event);
};
#include "Slider2.h"

void USlider2::set_value(float in_value, bool trigger_event)
{
    if (trigger_event) {
        USlider::SetValue(in_value);
        return;
    }

    if (Value != in_value)
        Value = in_value;
}

And all the same, this is a messy way to solve this problem too. Surely there’s a straight forward way directly in blueprints I can set the value without triggering the event and not have to create a whole new C++ class just to do this?