Announcement

Collapse
No announcement yet.

Having trouble getting enemy character stats on a widget.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Having trouble getting enemy character stats on a widget.

    In my game currently, I have an enemy running around in my level. If you click on him, a character sheet of him pops up.

    Click image for larger version

Name:	Capture.JPG
Views:	33
Size:	86.7 KB
ID:	1779335Click image for larger version

Name:	Capture2.JPG
Views:	16
Size:	110.6 KB
ID:	1779336 As you can see, the text block on the left is bound to GetText_0.

    Click image for larger version

Name:	Capture3.JPG
Views:	17
Size:	78.5 KB
ID:	1779337
    Character Sheet widget
    I was following a youtube tutorial when the guy used a cast to the third person character because the stats were from his player character. In my case, the stats are from a character called MobParent. Since the guy used a "Get player character" for the object, I cannot use the same. The MobParent variable here is a MobParent object reference. I am new to unreal engine and I am unsure of how I'm supposed to write this. I'm pretty sure this is where the problem lies but I am still unsure.
    Click image for larger version

Name:	Capture6.JPG
Views:	16
Size:	99.0 KB
ID:	1779340 In my game, the stats show as 0, even though is the MobParent character, the variables for health are 10, not 0.
    Click image for larger version

Name:	Capture7.JPG
Views:	17
Size:	350.0 KB
ID:	1779341 Any help would be appreciated.
    Attached Files
Working...
X