# \[solved\] GAS: SetHealth cheat, how to pass value

**URL:** <https://forums.unrealengine.com/t/solved-gas-sethealth-cheat-how-to-pass-value/2700498>\
**Category:** Blueprint\
**Tags:** unreal-engine, Gameplay-Ability-System, Blueprint, question\
**Created:** [February 18, 2026, 8:48am UTC](https://forums.unrealengine.com/t/solved-gas-sethealth-cheat-how-to-pass-value/2700498 "2026-02-18T08:48:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [February 18, 2026, 8:48am UTC](https://forums.unrealengine.com/t/solved-gas-sethealth-cheat-how-to-pass-value/2700498/1 "2026-02-18T08:48:42Z")

</div>

I’m trying to make a console cheat that would set player health to a given value, e.g. “SetHealth 50”.  
I’ve made a GE that modifies the attribute with “Set By Caller” Magnitude Calculation Type.  
I’ve set it up like this in CheatManager:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/0/4201d8dd6e70e7fca3867ad8ddb55530c30ef235.jpeg)

When I call it nothing happens and I get this warning:  
_LogAbilitySystem: Warning: UAbilitySystemBlueprintLibrary::AssignSetByCallerTagMagnitude called with invalid SpecHandle_

What am I doing wrong?

EDIT:

Found the correct way

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/6/c0635e96a3e7ac68631581f0c18ae4454e96b879.jpeg)

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [February 18, 2026, 10:07am UTC](https://forums.unrealengine.com/t/solved-gas-sethealth-cheat-how-to-pass-value/2700498/2 "2026-02-18T10:07:07Z")

</div>

i dont use GAS but my two guesses,

1. it probably needs a valid instigator/causer
2. Enusre it has world context otherwise GetPlayerPawn could fail
