Announcement

Collapse
No announcement yet.

help i keep getting player state instead of player health

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

    help i keep getting player state instead of player health

    i have tried multiple times but it keeps giving em player state instead and its not the variable i need

    #2
    Hello sarco123,

    From the looks of that function, it will only return a value of 0.

    Heres a tutorial

    HeadlessStudios.com - S P A G H E T T I: Ninja Swords, Guns & Monsters & Other S**t! - Join Our Discord

    Comment


      #3
      On your character blueprint create the health variable and from your cast on the "As Third Persona Character" node (mine is Main Character BP) you get that variable. Also personally instead of do a cast on that function, i would do the cast on the widget construct, and store a reference on the widget. Again, from "As Third Persona Character" node you drag and create a variable, then you get its values from there.

      Click image for larger version

Name:	Untitled2.png
Views:	56
Size:	72.9 KB
ID:	1657762
      Attached Files

      Comment

      Working...
      X