HI, Where is Function "get user widget object" in UE4.17.2

For those following this tutorial in late 2020, there is a different way to solve this. For some reason, GetUserWidgetObject is no longer valid in the construction script so it’s best to call the creation of the health bar in the same way we create the sword.

  1. Create a custom event in your KGCharacterBase EventGraph (where TryMelee, TryMagic, CreateSword are)
  2. Name it CreateHealthBar (or whatever you like)
  3. Use the exact same logic as in the tutorial (everything after setting HairColour in the Constriction Script)
  4. Call the CreateHealthBar event after you’ve called CreateSword (In Event BeginPlay)