# UGameplayModMagnitudeCalculation issue

**URL:** <https://forums.unrealengine.com/t/ugameplaymodmagnitudecalculation-issue/1336484>\
**Category:** Issues and Bug Reporting\
**Tags:** error, bugs, bug, bugreport, unreal-engine, Gameplay-Ability-System, compile-error, report, bug-report, editor, Blueprint, question, CPP\
**Created:** [October 18, 2023, 9:17am UTC](https://forums.unrealengine.com/t/ugameplaymodmagnitudecalculation-issue/1336484 "2023-10-18T09:17:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmperitum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lmperitum](https://forums.unrealengine.com/u/lmperitum)\
**Post date:** [October 18, 2023, 9:17am UTC](https://forums.unrealengine.com/t/ugameplaymodmagnitudecalculation-issue/1336484/1 "2023-10-18T09:17:42Z")

</div>

There is a built-in unreal class - UGameplayModMagnitudeCalculation.

It has the only function that can be overridden in blueprints: CalculateBaseMagnitude.  
 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/d/1ddd2cab84741c4d811b38713a7ec934900a451e.png)

There is a certain set of helper functions in the class that, as I understand it, exist literally to be used in this function.

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/d/f7d1b26a810c89c86f7f272eb13c3a17b8b01459.png)

But there is a problem…

 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/a/92a4022ce183d27bd8d19edb3d33ceafaf3db867.png)
