Health return

Created health function, for my combat system. Return node is coming back as return Health. Instead of saying Health. It is creating the health bar at half instead of full. Anyone know how to fix this?

Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name=“K2Node_FunctionEntry_0” ExportPath=“/Script/BlueprintGraph.K2Node_FunctionEntry’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_FunctionEntry_0’”
ExtraFlags=469893120
FunctionReference=(MemberName=“GetPercent”)
bIsEditable=True
NodePosX=-112
NodePosY=-16
NodeGuid=5D242B0D4BD8439D8349C5AAD99B8E35
CustomProperties Pin (PinId=2355034644A98E40A882F198ACA7F018,PinName=“then”,Direction=“EGPD_Output”,PinType.PinCategory=“exec”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_0 F7A57BE2442AEA86031B6B9316481B54,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionResult Name=“K2Node_FunctionResult_0” ExportPath=“/Script/BlueprintGraph.K2Node_FunctionResult’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_FunctionResult_0’”
FunctionReference=(MemberName=“GetPercent”)
bIsEditable=True
NodePosX=912
NodePosY=-16
NodeGuid=4DB95497482D95FCEFF904A29FF592E1
CustomProperties Pin (PinId=BCB839394DB037C5444739BC1758DE24,PinName=“execute”,PinType.PinCategory=“exec”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_1 3896A694424C42FACFD654860D7AED88,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=A390DAD94479DAF96341D2A8C4A4DAE1,PinName=“ReturnValue”,PinType.PinCategory=“real”,PinType.PinSubCategory=“float”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=“0.0”,AutogeneratedDefaultValue=“0.0”,LinkedTo=(K2Node_PromotableOperator_0 5A03AF584DF044A6C42C6394CB98CC66,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties UserDefinedPin (PinName=“ReturnValue”,PinType=(PinCategory=“real”,PinSubCategory=“float”),DesiredPinDirection=EGPD_Input,PinDefaultValue=“0.0”)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_VariableGet Name=“K2Node_VariableGet_0” ExportPath=“/Script/BlueprintGraph.K2Node_VariableGet’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_VariableGet_0’”
VariableReference=(MemberName=“DamageableActor”,MemberGuid=064EE6D1478FB00415522682FFD2F6AB,bSelfContext=True)
NodePosX=-128
NodePosY=128
NodeGuid=2438B499464B54C339A71E9B3B47B85D
CustomProperties Pin (PinId=350C862742FE46F7E2CBC49E483BF0DA,PinName=“DamageableActor”,Direction=“EGPD_Output”,PinType.PinCategory=“interface”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_0 A3036EB248E9436FE91FD19BBB6F7AD9,K2Node_Knot_0 BD31837840C86488A20703AD427B8830,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=E2D295E046B0C8CF5F59C9899BEACB2D,PinName=“self”,PinFriendlyName=NSLOCTEXT(“K2Node”, “Target”, “Target”),PinType.PinCategory=“object”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=“/Script/UMG.WidgetBlueprintGeneratedClass’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar_C’”,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=“K2Node_CallFunction_0” ExportPath=“/Script/BlueprintGraph.K2Node_CallFunction’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_CallFunction_0’”
bIsInterfaceCall=True
FunctionReference=(MemberParent=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,MemberName=“GetMaxHealth”,MemberGuid=FAC5585C43C9E298E271B48039C28E07)
NodePosX=64
NodePosY=-32
NodeGuid=3CA656AB41201E28545D5585CEC6B179
CustomProperties Pin (PinId=F7A57BE2442AEA86031B6B9316481B54,PinName=“execute”,PinToolTip=“\nExec”,PinType.PinCategory=“exec”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionEntry_0 2355034644A98E40A882F198ACA7F018,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=EF6B2A084462E37B741892BC6E76D480,PinName=“then”,PinToolTip=“\nExec”,Direction=“EGPD_Output”,PinType.PinCategory=“exec”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_1 2A46A657424583A829438F8FAC73DE5A,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=A3036EB248E9436FE91FD19BBB6F7AD9,PinName=“self”,PinFriendlyName=NSLOCTEXT(“K2Node”, “Target”, “Target”),PinToolTip=“Target\nBPI Damage Able Interface”,PinType.PinCategory=“interface”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_VariableGet_0 350C862742FE46F7E2CBC49E483BF0DA,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=6785E05D4EA52E858E47DBBA6D9322A0,PinName=“MaxHealth”,PinToolTip=“Max Health\nFloat (double-precision)”,Direction=“EGPD_Output”,PinType.PinCategory=“real”,PinType.PinSubCategory=“double”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=“0.0”,AutogeneratedDefaultValue=“0.0”,LinkedTo=(K2Node_PromotableOperator_0 EB6D506340256DEE7D84D3A9C4DDC244,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=“K2Node_CallFunction_1” ExportPath=“/Script/BlueprintGraph.K2Node_CallFunction’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_CallFunction_1’”
bIsInterfaceCall=True
FunctionReference=(MemberParent=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,MemberName=“GetCurrentHealth”,MemberGuid=52AF714D4DBCBA2CB482F4829F31AB84)
NodePosX=384
NodePosY=-32
NodeGuid=38C32F41420D9203DB5EF3851E1C536E
CustomProperties Pin (PinId=2A46A657424583A829438F8FAC73DE5A,PinName=“execute”,PinToolTip=“\nExec”,PinType.PinCategory=“exec”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_0 EF6B2A084462E37B741892BC6E76D480,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=3896A694424C42FACFD654860D7AED88,PinName=“then”,PinToolTip=“\nExec”,Direction=“EGPD_Output”,PinType.PinCategory=“exec”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionResult_0 BCB839394DB037C5444739BC1758DE24,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=73C15A904B19EE9DD859F9A2C7B3E152,PinName=“self”,PinFriendlyName=NSLOCTEXT(“K2Node”, “Target”, “Target”),PinToolTip=“Target\nBPI Damage Able Interface”,PinType.PinCategory=“interface”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_Knot_0 9EB477F6479■■■03EE036DA6330DEFC1,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=AB11E47241BA1EC9FBE2029F2F067FBD,PinName=“ReturnHealth”,PinToolTip=“Return Health\nFloat (double-precision)”,Direction=“EGPD_Output”,PinType.PinCategory=“real”,PinType.PinSubCategory=“double”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=“0.0”,AutogeneratedDefaultValue=“0.0”,LinkedTo=(K2Node_PromotableOperator_0 E995D2594E4039965DDE87AF444D8CCE,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_Knot Name=“K2Node_Knot_0” ExportPath=“/Script/BlueprintGraph.K2Node_Knot’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_Knot_0’”
NodePosX=176
NodePosY=144
NodeGuid=AFE32F9742897F2C67C07987BBBB9FA9
CustomProperties Pin (PinId=BD31837840C86488A20703AD427B8830,PinName=“InputPin”,PinType.PinCategory=“interface”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_VariableGet_0 350C862742FE46F7E2CBC49E483BF0DA,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=True,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=9EB477F6479■■■03EE036DA6330DEFC1,PinName=“OutputPin”,Direction=“EGPD_Output”,PinType.PinCategory=“interface”,PinType.PinSubCategory=“”,PinType.PinSubCategoryObject=“/Script/Engine.BlueprintGeneratedClass’/Game/DamageSystem/BPI_DamageAble.BPI_DamageAble_C’”,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_1 73C15A904B19EE9DD859F9A2C7B3E152,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_PromotableOperator Name=“K2Node_PromotableOperator_0” ExportPath=“/Script/BlueprintGraph.K2Node_PromotableOperator’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.K2Node_PromotableOperator_0’”
OperationName=“Divide”
bIsPureFunc=True
FunctionReference=(MemberParent=“/Script/CoreUObject.Class’/Script/Engine.KismetMathLibrary’”,MemberName=“Divide_DoubleDouble”)
NodePosX=624
NodePosY=112
NodeGuid=CE857234498BBC40B16CBC938521500C
CustomProperties Pin (PinId=E995D2594E4039965DDE87AF444D8CCE,PinName=“A”,PinToolTip=“A\nFloat (double-precision)”,PinType.PinCategory=“real”,PinType.PinSubCategory=“double”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_1 AB11E47241BA1EC9FBE2029F2F067FBD,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=EB6D506340256DEE7D84D3A9C4DDC244,PinName=“B”,PinToolTip=“B\nFloat (double-precision)”,PinType.PinCategory=“real”,PinType.PinSubCategory=“double”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_0 6785E05D4EA52E858E47DBBA6D9322A0,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=5A03AF584DF044A6C42C6394CB98CC66,PinName=“ReturnValue”,PinToolTip=“Return Value\nFloat (double-precision)\n\nDivision (A / B)”,Direction=“EGPD_Output”,PinType.PinCategory=“real”,PinType.PinSubCategory=“double”,PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionResult_0 A390DAD94479DAF96341D2A8C4A4DAE1,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/UnrealEd.EdGraphNode_Comment Name=“EdGraphNode_Comment_0” ExportPath=“/Script/UnrealEd.EdGraphNode_Comment’/Game/DamageSystem/WBP_HealthBar.WBP_HealthBar:GetPercent.EdGraphNode_Comment_0’”
bCommentBubbleVisible_InDetailsPanel=False
NodePosX=320
NodePosY=-96
NodeWidth=318
NodeHeight=210
bCommentBubblePinned=False
bCommentBubbleVisible=False
NodeComment=“issue need to be health 5/16/24”
NodeGuid=1E46612E48823A9FDCFCD994A2115BED
End Object

i know the answer to the first line of the question, make sure your dividing it correctly and all that as it expects a percent value

idk what all this other stuff even is? is the problem deeper than that?
my guess is you copied the BP and pasted that information instead of taking a screenshot?

Like this?
if your not doing something like that we’ll need at least some info on where you copied the nonsense above

It’s worth noting the progress bar expects a value between 0 and 1
my Health that i pull from the FirstPersonCharacter is 100 max so a multiply here works ok for me
however you can just use a clamp node to do the same thing

Health = 50343 → Clamp(0,1) → HealthPercent ( Health amt wouldn’t matter here is the point im trying to make )

This seems to be one of your first few posts here so know i mean that in a helpful way
also to upload a picture you just drag and drop it on your post or click the little picture icon
if you cant do it because of your member level or whatever just go like some random posts
and reply to some stuff that you can and you’ll get the level to edit and have as many pictures as you like quickly for me same day

Thank you so much. The Clamp was what I forgot, and I will remember to screenshot next time i have an issue. I am new to programing and unreal engine.

Don’t forget to mark as answer

Use clamp

otherwise people will continually try to solve :slight_smile:

will do and thanks for the help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.